? FLASHLED1.c —demonstrates the use of assembly language to flash LEDs DS1 and
DS2 on the Prototyping Board at different rates. Once you have compiled and run this
program, LEDs DS1 and DS2 will flash on/off at different rates.
? FLASHLED2.c —demonstrates the use of cofunctions and costatements to flash LEDs
DS1 and DS2 on the Prototyping Board at different rates. Once you have compiled and
run this program, LEDs DS1 and DS2 will flash on/off at different rates.
? TOGGLESWITCH.c —demonstrates the use of costatements to detect switches using the
press-and-release method of debouncing. LEDs DS1 and DS2 on the Prototyping
Board are turned on and off when you press switches S2 and S3. S2 and S3 are con-
trolled by PD5 and PD4 respectively.
? IR_DEMO.c —Demonstrates sending Modbus ASCII packets between two Prototyping
Board assemblies via the IrDA transceivers with the IrDA transceivers facing each other.
Note that this sample program requires a second Prototyping Board or Rabbit Semicon-
ductor single-board computer that has an IrDA chip and is running the IR_DEMO.C
sample program associated with it.
First, compile and run the IR_DEMO.C sample program from the SAMPLES folder spe-
cific to the other system on the second system, then remove the programming cable and
press the RESET button so that the first assembly is operating in the Run mode. Then
connect the programming cable to the RCM3400 Prototyping Board, and compile and
run the IR_DEMO.C sample program from the SAMPLES\RCM3400 folder on the
RCM3400 system. With the IrDA transceivers on the two Prototyping Boards facing
each other, press switch S2 on the RCM3400 Prototyping Board to transmit a packet.
The other system will return a response packet that will then appear in the Dynamic C
STDIO window. The test packets and response packets have different codes.
Once you have loaded and executed these five programs and have an understanding of
how Dynamic C and the RCM3400 modules interact, you can move on and try the other
sample programs, or begin building your own.
3.2.1 Serial Communication
The following sample programs are found in the SERIAL subdirectory in
SAMPLES\RCM3400 .
? FLOWCONTROL.C —This program demonstrates how to configure Serial Port C for
CTS/RTS with serial data coming from Serial Port D (TxD) at 115,200 bps. The serial
data received are displayed in the STDIO window.
To set up the Prototyping Board, you will need to tie TxD and RxD
together on the RS-232 header at J5, and you will also tie TxC and
RxC together using the jumpers supplied in the Development Kit as
shown in the diagram.
RxC TxC
J5
TxD RxD GND
A repeating triangular pattern should print out in the STDIO window.
The program will periodically switch flow control on or off to demonstrate the effect of
no flow control.
User ’s Manual
15
相关PDF资料
101-0589 CLONING BOARD RABBIT
101-0688 CARD D/A EXPANSION RN1300
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
10136-3000PC CONN MINI-D 36POS SOLDER PLUG
10136-6000EC CONN MDR PLUG 36POS IDC GOLD
相关代理商/技术参数
101-0565 功能描述:模块配件 BL2100 Btm Mnt Sckts RoHS:否 制造商:Lantronix 产品: 用于:
101-0566 功能描述:模块配件 BL2100 Friction Lock RoHS:否 制造商:Lantronix 产品: 用于:
101-0567 功能描述:单板计算机 BL2100 IDC Headers RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0568 功能描述:单板计算机 BL2100 512K RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0569 功能描述:单板计算机 BL2120 Btm Mnt RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0570 功能描述:单板计算机 BL2120 Friction Lock RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0571 功能描述:单板计算机 BL2120 IDC Headers RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
10-105712-03P 制造商:Amphenol Aerospace 功能描述:RECEPT