? SWITCHCHAR.C —This program demonstrates transmitting and then receiving an
ASCII string on Serial Ports B and C. It also displays the serial data received from both
ports in the STDIO window.
To set up the Prototyping Board, you will need to tie TxB and RxC
together on the RS-232 header at J5, and you will also tie RxB and
TxC together using the jumpers supplied in the Development Kit as
shown in the diagram.
RxC TxC
TxB RxB GND
J5
Once you have compiled and run this program, press and release S2
and S3 on the Prototyping Board. The data sent between the serial ports will be dis-
played in the STDIO window.
Two sample programs,
SIMPLE485MASTER.C and
SIMPLE485SLAVE.C , are available to
Vcc
485+
Vcc
illustrate RS-485 master/slave com-
munication. To run these sample pro-
grams, you will need a second Rabbit-
based system with RS-485, and you
will also have to add an RS-485 trans-
PC0
PC1
PD4
GND
DI
RO
DE
/RE
RS-485
CHIP
A
B
bias
termi-
nation
bias
681 W
220 W
681 W
ceiver such as the SP483E and bias
resistors to the RCM30/31/32XX
485?
Prototyping Board.
The diagram shows the connections. You will have to connect PC0 and PC1 (Serial Port D)
on the RCM30/31/32XX Prototyping Board to the RS-485 transceiver, and you will con-
nect PD4 to the RS-485 transceiver to enable or 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 RCM3000. The slave will send back converted upper case
letters back to the master RCM3000 and display them in the STDIO window. Use
SIMPLE485SLAVE.C to program the slave RCM3000.
? SIMPLE485SLAVE.C —This program demonstrates a simple RS-485 transmission of
lower case letters to a master RCM3000. The slave will send back converted upper case
letters back to the master RCM3000 and display them in the STDIO window. Use
SIMPLE485MASTER.C to program the master RCM3000.
3.2.2 Other Sample Programs
Section 6.11 describes the TCP/IP sample programs, and Appendix C.8 provides sample
programs for the optional LCD/keypad module that can be installed on the Prototyping
Board.
14
RabbitCore RCM3000
相关PDF资料
101-1109 KIT EMBEDDED PLC APPLICATION
101-1147 KIT RIO PROGRAM I/O
101-606 CONN SOCKET IDC 60POS W/KEY GOLD
10113616-01531LF CONN MOD JACK 8PORT 8/8 R/A PCB
10117863-5036010LF CONN MOD JACK 8/8 R/A PCB
10118061-5005010LF CONN MOD JACK 2PORT 8/8 R/A PCB
10118062-5001310LF CONN MOD JACK 4PORT 8/8 R/A PCB
10118063-5001310LF CONN MOD JACK 6PORT 8/8 R/A PCB
相关代理商/技术参数
101-0524 功能描述:KIT DEV RABBIT RCM3000 INTL RoHS:否 类别:编程器,开发系统 >> 通用嵌入式开发板和套件(MCU、DSP、FPGA、CPLD等) 系列:RabbitCore 3000 产品培训模块:Blackfin® Processor Core Architecture Overview Blackfin® Device Drivers Blackfin® Optimizations for Performance and Power Consumption Blackfin® System Services 特色产品:Blackfin? BF50x Series Processors 标准包装:1 系列:Blackfin® 类型:DSP 适用于相关产品:ADSP-BF548 所含物品:板,软件,4x4 键盘,光学拨轮,QVGA 触摸屏 LCD 和 40G 硬盘 配用:ADZS-BFBLUET-EZEXT-ND - EZ-EXTENDER DAUGHTERBOARDADZS-BFLLCD-EZEXT-ND - BOARD EXT LANDSCAP LCD INTERFACE 相关产品:ADSP-BF542BBCZ-4A-ND - IC DSP 16BIT 400MHZ 400CSBGAADSP-BF544MBBCZ-5M-ND - IC DSP 16BIT 533MHZ MDDR 400CBGAADSP-BF542MBBCZ-5M-ND - IC DSP 16BIT 533MHZ MDDR 400CBGAADSP-BF542KBCZ-6A-ND - IC DSP 16BIT 600MHZ 400CSBGAADSP-BF547MBBCZ-5M-ND - IC DSP 16BIT 533MHZ MDDR 400CBGAADSP-BF548BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGAADSP-BF547BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGAADSP-BF544BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGAADSP-BF542BBCZ-5A-ND - IC DSP 16BIT 533MHZ 400CSBGA
101-0525 功能描述:开发板和工具包 - 其他处理器 LP3500 RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101-0526 功能描述:开发板和工具包 - 其他处理器 LP3510 RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101-0529 功能描述:开发板和工具包 - 其他处理器 LP3500 Tool Kit RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101053 制造商:RUKO 功能描述:Bulk
101-0530 功能描述:开发板和工具包 - 其他处理器 LP3500 TOOLKIT Univr RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101-0531 功能描述:单板计算机 BL2101 0-10V A/D 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-105310-02P 制造商:Amphenol Aerospace 功能描述:RECEPT