Two sample programs, SIMPLE485MASTER.C and <" />
參數(shù)資料
型號: 20-101-1196
廠商: Rabbit Semiconductor
文件頁數(shù): 87/168頁
文件大?。?/td> 0K
描述: MODULE RABBITCORE RCM3900
標(biāo)準(zhǔn)包裝: 1
系列: RabbitCore®
模塊/板類型: MPU 核心模塊
適用于相關(guān)產(chǎn)品: RCM3900
其它名稱: 20-101-1196-ND
316-1155
RabbitCore RCM3900 User’s Manual
25
Two sample programs, SIMPLE485MASTER.C and SIMPLE485SLAVE.C, are available
to illustrate RS-485 master/slave communication. To run these sample programs, you will
need a second Rabbit-based system with RS-485—the second system may be another
RCM3900, or it may be any Rabbit single-board computer or RabbitCore module that sup-
ports RS-485 serial communication as long as you use the master or slave sample program
associated with that board.
Before running either of these sample programs on the RCM3900 assembly, make sure
pins 1–2 and pins 5–6 are jumpered together on header JP5 to use the RS-485 bias and ter-
mination resistors. The sample programs use Serial Port C as the RS-485 serial port, and
they use PD7 to enable/disable the RS-485 transmitter.
The RS-485 connections between the slave and master devices are as follows.
RS485+ to RS485+
RS485– to RS485–
GND to GND
SIMPLE485MASTER.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave. The slave will send back converted upper case letters back
to the master and display them in the STDIO window. Use SIMPLE485SLAVE.C to
program the slave—reset the slave before you run SIMPLE485MASTER.C on the
master.
SIMPLE485SLAVE.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a master. The slave will send back converted upper case letters
back to the master and display them in the STDIO window. Compile and run this pro-
gram on the slave before you use SIMPLE485MASTER.C to program the master.
3.2.4 Real-Time Clock
If you plan to use the real-time clock functionality in your application, you will need to set
the real-time clock. Set the real-time clock using the Dynamic C SAMPLES\RTCLOCK\
SETRTCKB.C
sample program by following the onscreen prompts. The Dynamic C
SAMPLES\RTCLOCK\RTC_TEST.C
sample program provides additional examples of
how to read and set the real-time clock.
3.2.5 Other Sample Programs
Section 6.6 describes the TCP/IP sample programs, and Appendix C.7 provides sample
programs for the optional LCD/keypad module that can be installed on the Prototyping
Board.
相關(guān)PDF資料
PDF描述
20-101-1105 MODULE RCM4100 RABBITCORE
20-101-1028 MODULE RABBITCORE RCM3750
046232104015800+ CONN FFC/FPC 4POS 1MM VERT SMD
20-101-0454 MODULE RABBITCORE RCM2200
20-101-0405 MODULE RABBITCORE RCM2010
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-1197 功能描述:模塊化系統(tǒng) - SOM RCM3910 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
20-101-1198 功能描述:程序設(shè)計(jì)器配件 Programmers, Development Systems Accessories - CARD EXPANSION RN1400 ROHS RoHS:否 制造商:Lattice 產(chǎn)品:ispDOWNLOAD Cables 用于:In-system Programming
20-101-1200 功能描述:子卡和OEM板 UNIVERSAL RELAY EXP BOARD RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-1201 功能描述:程序設(shè)計(jì)器配件 USB PROG CBL WITH 2MM CONN RoHS:否 制造商:Lattice 產(chǎn)品:ispDOWNLOAD Cables 用于:In-system Programming
20-101-1202 功能描述:WiFi/802.11模塊 RCM4400W CORE MODULE Wi-Fi/802.11 RoHS:否 制造商:Taiyo Yuden 支持協(xié)議:802.11 b/g/n 頻帶: 數(shù)據(jù)速率:150 Mbps 接口類型:SDIO 傳輸功率(最大): 天線連接器類型: 工作電源電壓:3.4 V to 5.5 V 傳輸供電電流: 接收供電電流: 最大工作溫度:+ 80 C 尺寸:35 mm x 15 mm x 2.9 mm