參數(shù)資料
型號(hào): 20-101-0357
廠商: Rabbit Semiconductor
文件頁(yè)數(shù): 47/94頁(yè)
文件大?。?/td> 0K
描述: COMPUTER SINGLE-BOARD BL1810
標(biāo)準(zhǔn)包裝: 1
系列: Jackrabbit
模塊/板類(lèi)型: 單板計(jì)算機(jī)模塊
適用于相關(guān)產(chǎn)品: BL1810
產(chǎn)品目錄頁(yè)面: 618 (CN2011-ZH PDF)
其它名稱(chēng): 316-1080
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 );
}
相關(guān)PDF資料
PDF描述
345-030-527-804 CARDEDGE 30POS DUAL .100 GREEN
345-030-527-802 CARDEDGE 30POS DUAL .100 GREEN
20-101-0435 MODULE RABBITCORE RCM2110
345-030-527-801 CARDEDGE 30POS DUAL .100 GREEN
AT25640N-10SI-2.7 IC EEPROM 64KBIT 3MHZ 8SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-0358 功能描述:單板計(jì)算機(jī) BL1820 RoHS:否 制造商:Ampro By ADLINK 外觀尺寸:EPIC 處理器類(lèi)型:Intel Atom D510 頻率:1.66 GHz 存儲(chǔ)容量:2 GB (max) 存儲(chǔ)類(lèi)型:DDR2, L2 Cache 接口類(lèi)型:Ethernet, PS/2, SATA, Serial, USB 工作電源電壓:5 V, 12 V 功耗:13 W 最大工作溫度:+ 70 C 尺寸:165.1 mm x 114.3 mm
20-101-0383 功能描述:模塊化系統(tǒng) - SOM RCM2020 RabbitCore RoHS:否 制造商:Digi International 外觀尺寸:ConnectCore 9P 處理器類(lèi)型:ARM926EJ-S 頻率:150 MHz 存儲(chǔ)容量:8 MB, 16 MB 存儲(chǔ)類(lèi)型:NOR Flash, SDRAM 接口類(lèi)型:I2C, SPI, UART 工作電源電壓:3.3 V 最大工作溫度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
20-101-0389 功能描述:子卡和OEM板 SR9200 16IN/8OUT RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0390 功能描述:子卡和OEM板 SR9210 8 in/ 16 out RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0391 功能描述:子卡和OEM板 SR9220 DIG I/O 8IN 8OUT RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit