Two sample programs, SIMPLE485MASTER.C and <" />
參數(shù)資料
型號: 20-101-1197
廠商: Rabbit Semiconductor
文件頁數(shù): 87/168頁
文件大?。?/td> 0K
描述: MODULE RABBITCORE RCM3910 ROHS
標(biāo)準(zhǔn)包裝: 1
系列: RabbitCore®
模塊/板類型: MPU 核心模塊
適用于相關(guān)產(chǎn)品: RCM3910
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-1215 MCU RCM4050 RABBITCORE
20-101-1246 CORE MODULE RCM5400W
20-101-1260 BL5S220 SBC (RCM5400-BASED)
20-101-1319 MINCORE MODULE RCM6710
20-668-0024 IC CPU RABBIT4000 128-LQFP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
20-101-1198 功能描述:程序設(shè)計器配件 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è)計器配件 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
20-101-1207 功能描述:Zigbee/802.15.4模塊 RF/IF and RFID RF Evaluation & Development Kits & Boards - RCM4510W FCC CERTIFIED RoHS:否 制造商:Digi International 頻帶:902 MHz to 928 MHz 視線范圍: 數(shù)據(jù)速率: 靈敏度: 工作電源電壓:2.4 V to 3.6 V 傳輸供電電流:215 mA 接收供電電流:26 mA 輸出功率:250 mW 天線連接器類型:Wire 最大工作溫度:+ 85 C 尺寸:32.94 mm x 22 mm x 2.03 mm