20-101-0356 Rabbit Semiconductor, 20-101-0356 Datasheet - Page 51

COMPUTER SINGLE-BOARD BL1800

20-101-0356

Manufacturer Part Number
20-101-0356
Description
COMPUTER SINGLE-BOARD BL1800
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-0356

Module/board Type
Single Board Computer Module
Product
Modules
Data Bus Width
8 bit
Processor Type
Rabbit 2000
Sram
128 KB
Flash
256 KB
Timers
8 bit, 10 bit
Number Of I/os
14
Backup Battery
3 V Lithium Coin Type
Operating Voltage
8 V to 40 V
Power Consumption
1.2 W
Board Size
89 mm x 64 mm x 19 mm
Description/function
Computer Module
For Use With/related Products
BL1800
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
316-1079
4.2.4 RS-485 Serial Communication Sample Program
The following sample program illustrates the use of the RS-485 serial drivers. The sample
program shows a byte being transmitted, and then the RS-485 transceiver waits for a reply.
User’s Manual
#define DINBUFSIZE
#define DOUTBUFSIZE 15
void main( void ){
}
NOTE: If your version of Dynamic C is earlier than 6.55, see Technical Note 117, Jack-
int nEcho,nReply;
char cChar;
Jr485Init ();// Init RS485 Control (PD5)
serDopen ( 9600 );// Open Serial Port D
for (;;) {// Forever
}
rabbit (BL1800 Series) RS-485 Bulletin, for information on restrictions on using both
DA1 and RS-485 at the same time.
for (cChar='a';cChar<='z';++cChar){
}
Jr485Tx ();// Enable RS485 Transmitter
serDputc ( cChar );// Send Byte
while ((nEcho = serDgetc ()) == -1);
Jr485Rx ();// Disable RS485 Transmitter
while ((nReply = serDgetc ()) == -1);
printf ( "%02x -> %02x\n",nEcho,nReply );
15
// Wait for Echo
// Wait for Reply
// Send Alphabet
47

Related parts for 20-101-0356