User’s Manual
53
4.3.3 Serial Communication
The following sample programs are found in the
RS232
subdirectory in
SAMPLES\OP7200
.
•
PUTS.C
—This program transmits and then
receives an ASCII string on Serial Ports C and
D. The serial data received are displayed in the
STDIO
window.
To set up the OP7200, you will need to tie
TxC and RxD together on the screw-terminal
header at J10, and you will also tie TxD and
RxC together as shown in the diagram.
•
RELAYCHR.C
—This program echoes charac-
ters to or from a serial utility such as Hyper-
Terminal or Tera Term.
To set up the OP7200, you will need to tie
TxC and RxD together on the screw-terminal
header at J10.
Set up HyperTerminal or Tera Term as follows: 19200 bps, 8 data bits, no parity, 1 stop
bit, and no flow control. Here are a few additional settings if you are using Tera Term.
X
Disable
Local Echo
in the
Terminal
setup
X
Enable the receive and line feed options (
CR + LF
) under
New line
in the
Terminal
setup
Now when you type characters in the HyperTerminal or Tera Term window, they will
appear in the window because they are being echoed back by the sample program.
Two sample programs,
MASTER.C
and
SLAVE.C
, are available in the
RS485
subdirectory
in
SAMPLES\OP7200
to illustrate RS-485 master/slave communication. To run these
sample programs, you will need a second Rabbit-based system with RS-485—another
Rabbit Semiconductor single-board computer or OP7200 may be used as long as you use
the master or slave sample program associated with that board.
The RS-485 connections between the slave and master devices are as follows.
•
RS485+ to RS485+
•
RS485– to RS485–
•
GND to GND
Then connect your PC COM port to screw-terminal
header J10 as follows.
X
PC Tx to RxC on J10
X
PC Rx to TxD on J10
X
PC GND to GND on J10
J10
GND
+485
485
RXD/CTS
TXD/R
TS
RXC
TXC
/RST
IN15
IN14
IN13
IN12
J10
GND
+485
485
RXD/CTS
TXD/R
TS
RXC
TXC
/RST
IN15
IN14
IN13
IN12
5 4 3
2 1
9 8 7 6
GND
DTR
Tx (out)
Rx (in)
DCD
RING
CTS
RT
S
DSR
COM
Содержание eDisplay OP7200
Страница 1: ...eDisplay OP7200 VGA Operator Control Panel User s Manual 019 0116 060831 J...
Страница 6: ...eDisplay OP7200...
Страница 14: ...8 eDisplay OP7200...
Страница 22: ...16 eDisplay OP7200...
Страница 52: ...46 eDisplay OP7200...
Страница 126: ...120 eDisplay OP7200...
Страница 132: ...126 eDisplay OP7200...
Страница 133: ...User s Manual 127 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the OP7200...
Страница 152: ...146 eDisplay OP7200...
Страница 168: ...162 eDisplay OP7200...
Страница 172: ...166 eDisplay OP7200...
Страница 174: ......