SWITCHCHAR.C —This program transmits and then receives an ASCII string on Serial
參數(shù)資料
型號: 101-1055
廠商: Rabbit Semiconductor
文件頁數(shù): 90/164頁
文件大?。?/td> 0K
描述: MODULE RABBIT CORE RCM3375
標(biāo)準(zhǔn)包裝: 1
系列: RabbitCore®
模塊/板類型: MPU 核心模塊
適用于相關(guān)產(chǎn)品: RCM3375
User’s Manual
25
SWITCHCHAR.C
—This program transmits and then receives an ASCII string on Serial
Ports E and F. 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
TxE and RxF together on the RS-232 header at J14, and
you will also tie RxE and TxF together as shown in the
diagram.
Once you have compiled and run this program, press
and release S2 on the Prototyping Board to send a message from Serial Port E to Serial
Port F; press and release S3 on the Prototyping Board to send a message from Serial
Port F to Serial Port E. The data sent between the serial ports will be displayed in the
STDIO
window.
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
RCM3365/RCM3375, or it may be any Rabbit single-board computer or RabbitCore mod-
ule that supports RS-485 serial communication as long as you use the master or slave sam-
ple program associated with that board.
Before running either of these sample programs on the RCM3365/RCM3375 assembly,
make sure pins 1–2 and pins 5–6 are jumpered together on header JP5 to use the RS-485
bias and termination 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 SETRTCKB.C sample program from
the Dynamic C SAMPLES\RTCLOCK folder, using the onscreen prompts. The RTC_
TEST.C
sample program in the Dynamic C SAMPLES\RTCLOCK folder provides addi-
tional examples of how to read and set the real-time clock.
J14
TxE RxE GND TxF RxF 485+ GND 485
相關(guān)PDF資料
PDF描述
046232104103800 CONN FFC/FPC 4POS 1MM R/A SMD
046232106015800 CONN FFC/FPC 6POS 1MM VERT SMD
19FMN-BMT-A-TF CONN FMN HSNG 19POS SNGL NOR SMD
101-0412 INTERFACE PROG 12KEY DISP OP6700
14FMN-BMT-A-TF CONN FMN HSNG 14POS SNGL NOR SMD
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10110565 制造商:Pentair Technical Products / Hoffman 功能描述:FILING DESK TABLE RAL7035 制造商:PENTAIR TECNICAL PRODCUTS 功能描述:FILING DESK TABLE RAL7035
101-106 功能描述:CONN SOCKET IDC 10POS W/KEY GOLD RoHS:是 類別:連接器,互連式 >> 矩形 - 自由懸掛,面板安裝 系列:101 3D 型號:640430-4.pdf 標(biāo)準(zhǔn)包裝:500 系列:MTA-156 連接器類型:插座 觸點(diǎn)類型::母形插口 位置數(shù):4 間距:0.156"(3.96mm) 行數(shù):1 行間距:- 安裝類型:自由懸掛 緊固型:鎖銷滑道 電纜端接:IDC 導(dǎo)線類型:離散式或帶狀纜線 線規(guī):26 AWG 特點(diǎn):閉端 觸點(diǎn)表面涂層:錫 - 鉛 觸點(diǎn)涂層厚度:80µin(2.03µm) 顏色:藍(lán) 包裝:散裝 配套產(chǎn)品:3-647497-4-ND - CONN PLUG 4POS IDC 22AWG .1563-647481-4-ND - CONN PLUG 4POS IDC 18AWG .1563-647476-4-ND - CONN PLUG 4POS IDC 18AWG .1563-644814-4-ND - CONN PLUG 4POS IDC 22AWG .1563-644812-4-ND - CONN PLUG 4POS IDC 18AWG .1563-644809-4-ND - CONN PLUG 4POS IDC 22AWG .1563-644807-4-ND - CONN PLUG 4POS IDC 18AWG .1563-643995-4-ND - CONN PLUG 4POS IDC 22AWG .1563-641526-4-ND - CONN PLUG 4POS IDC 26AWG .1563-641525-4-ND - CONN PLUG 4POS IDC 24AWG .156更多... 相關(guān)產(chǎn)品:A19762-ND - CONN DUST COVER 4POS CLOSEDA19742-ND - CONN STRAIN RELIEF COVER 4POSA1999-ND - HEAD ASSEM TOOL FOR MTA-156 RECP 其它名稱:640430-4-NDA23965
10-1106.1369 制造商:EAO International 功能描述:LAMP INCANDESCENT SLIDE 6V 制造商:EAO International 功能描述:LAMP, INCANDESCENT, SLIDE, 6V 制造商:EAO International 功能描述:LAMP, INCANDESCENT, SLIDE, 6V; Supply Voltage:6V; Lamp Base Type:Telephone Slide; Bulb Size:T-5 1/2; MSCP:0.48; Average Bulb Life:5000h; Current Rating:200mA; Forward Voltage:6V; Lead Style:Telephone Slide, T-5.5; Lens Style:Tubular ;RoHS Compliant: Yes 制造商:EAO International 功能描述:T-5.5 Slide Incandescent Lamp
1011060000 制造商:Weidmuller 功能描述:WSI 6 PA OR -EA - Bulk 制造商:Weidmuller 功能描述:TERMINAL WSI 6 ORANGE
101106100SP 制造商:Pentair Technical Products / Hoffman 功能描述:KIT CNTRL PNL NARROW MCLEAN