176
Boards
© Tibbo Technology Inc.
3
Serial port: TX (RS232); TX/RX+ (RS485)
2
Serial port: RX (RS232); TX/RX- (RS485)
1
SYSTEM (COMMON) GROUND
Serial port control
Four lines of the
port:
Line
Function
Corresponding
EM1000 I/O
IC1000 cable
line
RX (input)
Receive line of the serial
port
GPIO8/RX0
17
TX (output)
Transmit line of the serial
port
GPIO9/TX0
19
MODE
(output)
Mode selection:
HIGH - RS485
LOW (or input*) - RS232
GPIO44
14
DIR
(output)
Direction control in RS485
mode:
HIGH - output
LOW - input
GPIO0/RTS0
1
*GPIO line configured as input (default state)
Do not forget to configure the TX, MODE, and DIR lines as outputs. A pull-down
resistor on the MODE line ensures that the system boots up with the RS232 port
selected.
LED Control
The IB1004 works with a standard
board and controls the LEDs through 8
general-purpose I/O (GPIO) lines of the
module (installed on the
network board). To turn the LED on, set the corresponding line LOW. Remember to
configure all LED control lines as outputs.
For all LED control lines:
HIGH (or input*) - LED off
LOW - LED on
LED #, color
(LB1001)
Corresponding
EM1000 I/O
IC1000 cable line
#8, red
GPIO24
46
#7, green
GPIO25
44
#6, red
GPIO26
42
#5, green
GPIO27
40
#4, red
GPIO28
38
#3, green
GPIO29
36