参数资料
型号: 101-0558
厂商: Rabbit Semiconductor
文件页数: 47/94页
文件大小: 0K
描述: COMPUTER SNG BD BL1800 512K SRAM
标准包装: 10
系列: SBC
模块/板类型: 单板计算机模块
适用于相关产品: BL1800
User’s Manual
47
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.
NOTE: If your version of Dynamic C is earlier than 6.55, see Technical Note 117, Jack-
rabbit (BL1800 Series) RS-485 Bulletin, for information on restrictions on using both
DA1 and RS-485 at the same time.
#define DINBUFSIZE
15
#define DOUTBUFSIZE 15
void main( void ){
int nEcho,nReply;
char cChar;
Jr485Init ();// Init RS485 Control (PD5)
serDopen ( 9600 );// Open Serial Port D
for (;;) {// Forever
for (cChar='a';cChar<='z';++cChar){
// Send Alphabet
Jr485Tx ();// Enable RS485 Transmitter
serDputc ( cChar );// Send Byte
while ((nEcho = serDgetc ()) == -1);
// Wait for Echo
Jr485Rx ();// Disable RS485 Transmitter
while ((nReply = serDgetc ()) == -1);
// Wait for Reply
printf ( "%02x -> %02x\n",nEcho,nReply );
}
相关PDF资料
PDF描述
396-036-526-204 CARD EDGE 36POS DL .125X.250 BLK
396-036-526-202 CARD EDGE 36POS DL .125X.250 BLK
101-0411 INTERFACE 12KEYDISP ETHNT OP6700
AT24C02A-10PI-2.7 IC EEPROM 2KBIT 400KHZ 8DIP
AT24C02A-10PI-1.8 IC EEPROM 2KBIT 400KHZ 8DIP
相关代理商/技术参数
参数描述
10105584 制造商:Amphenol Corporation 功能描述:10-341374-222 - Bulk
101055OO 制造商:TE Connectivity 功能描述:
101056084S 制造商:Amphenol Aerospace 功能描述:CONNECTOR
101-0561 功能描述:模块化系统 - SOM RCM3400 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
10-105610-02S 制造商:Amphenol Aerospace 功能描述:PLUG