101-0359 Rabbit Semiconductor, 101-0359 Datasheet - Page 29

KIT DEVELOPMENT BASIC RABBIT2000

101-0359

Manufacturer Part Number
101-0359
Description
KIT DEVELOPMENT BASIC RABBIT2000
Manufacturer
Rabbit Semiconductor
Series
RabbitCore 2000r
Type
MPU Moduler
Datasheet

Specifications of 101-0359

Rohs Status
RoHS non-compliant
Contents
RabbitCore Module, Dev. Board, AC Adapter, Cable and Dynamic C® CD-Rom
Processor To Be Evaluated
Rabbit 2000
Interface Type
RS-232, RS-485
For Use With/related Products
RCM2000, RCM2010, RCM2020
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
316-1003
3.1.3 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.
Getting Started 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
25

Related parts for 101-0359