Multi-channel Serial Port
The EM1202EV has four serial ports internally. The EM1202EV-RS has an RS232 port with DB9M connector, while "-TM" and "-TS" devices have TTL serial port available through a TTL interface connector, which is a standard pin header with 2mm pitch.
The EM1202EV implements three outputs, four inputs, and one "spare" input (CD). Each of the three outputs can be used as a TX line of a serial channel, or as a control output such as RTS or DTR. Input lines can be used as an RX line of a serial channel, or as a control input such as CTS or DSR. The spare input cannot work as an RX line. This input is not used by the serial-over-IP application supplied by Tibbo and will be largely omitted from further discussion. Your Tibbo BASIC/C application can always use this extra input if you require it.
With three outputs and four inputs, the EM1202EV can be said to offer 3.5 serial "channels". We say "3.5 channels" and not "four channels" because one channel will only have RX line and no TX line (remember, there are four inputs but only three outputs).

DB9M connector pin assignment:
Pin |
Name |
EM1202EV-RS |
#1 |
CD |
Spare input* |
#2-4, 6-9 |
|
Lines of the RS232 port, see mapping table below |
#5 |
GND |
Ground |
*Not used in Tibbo serial-over-IP application. Your Tibbo BASIC/C program can use this line if needed.
TTL interface connector pin assignment:
Pin |
Name |
EM1202EV-TM |
EM1202EV-TS |
#1 |
CD |
Spare input* |
|
#2-8 |
|
Lines of TTL serial port, see mapping table below |
|
#9 |
Setup line input, active low, use open collector driving circuit |
||
#10 |
RST |
Reset input, active low, use open collector driving circuit |
|
#11 |
GND |
Ground |
|
#12 |
3.3V |
Output to external device |
Input from external device |
*Not used in Tibbo serial-over-IP application. Your Tibbo BASIC/C program can use this line if needed.
Serial-over-IP application offered by Tibbo defines 15 "mapping options", or ways in which available I/O lines are utilized ("spare" input is not used or shown). These are presented in the table below:
Mapping option |
Available signals |
Pins on the DB9M connector of the EM1202EV-RS |
Missing line |
||||||
#2 |
#3 |
#8 |
#7 |
#6 |
#4 |
#9 |
|||
Option 0 |
RX/TX/CTS/RTS/DSR/DTR |
RX |
TX |
CTS |
RTS |
DSR |
DTR |
--- |
--- |
Option 1 |
RX/TX/CTS/RTS/DSR/DTR + RX/tx |
RX |
TX |
CTS |
RTS |
DSR |
DTR |
RX4 |
tx4 |
Option 2 |
RX/TX/CTS/RTS + RX/TX + RX/tx |
RX |
TX |
CTS |
RTS |
RX3 |
TX3 |
RX4 |
tx4 |
Option 3 |
RX/TX/CTS/RTS + RX/TX/CTS/rts |
RX |
TX |
CTS |
RTS |
RX3 |
TX3 |
CTS3 |
rts3 |
Option 4 |
RX/TX/CTS/RTS + RX/TX/DSR/dtr |
RX |
TX |
CTS |
RTS |
RX3 |
TX3 |
DSR3 |
dtr3 |
Option 5 |
RX/TX/DSR/DTR + RX/TX + RX/tx |
RX |
TX |
RX2 |
TX2 |
DSR |
DTR |
RX4 |
tx4 |
Option 6 |
RX/TX/DSR/DTR + RX/TX/CTS/rts |
RX |
TX |
RX2 |
TX2 |
DSR |
DTR |
CTS2 |
rts2 |
Option 7 |
RX/TX/DSR/DTR + RX/TX/DSR/dtr |
RX |
TX |
RX2 |
TX2 |
DSR |
DTR |
DSR2 |
dtr2 |
Option 8 |
RX/TX + RX/TX + RX/TX + RX/tx |
RX |
TX |
RX2 |
TX2 |
RX3 |
TX3 |
RX4 |
tx4 |
Option 9 |
RX/TX/CTS/rts + RX/TX + RX/TX |
RX |
TX |
RX2 |
TX2 |
RX3 |
TX3 |
CTS |
rts |
Option 10 |
RX/TX/DSR/dtr + RX/TX + RX/TX |
RX |
TX |
RX2 |
TX2 |
RX3 |
TX3 |
DSR |
dtr |
Option 11 |
RX/TX/CTS/RTS + RX/tx/CTS/RTS |
RX |
TX |
CTS |
RTS |
CTS4 |
RTS4 |
RX4 |
tx4 |
Option 12 |
RX/TX/CTS/RTS + RX/tx/DSR/DTR |
RX |
TX |
CTS |
RTS |
DSR4 |
DTR4 |
RX4 |
tx4 |
Option 13 |
RX/TX/DSR/DTR + RX/tx/CTS/RTS |
RX |
TX |
CTS4 |
RTS4 |
DSR |
DTR |
RX4 |
tx4 |
Option 14 |
RX/TX/DSR/DTR + RX/tx/DSR/DTR |
RX |
TX |
DSR4 |
DTR4 |
DSR |
DTR |
RX4 |
tx4 |
Mapping option |
Available signals |
#6 |
#5 |
#4 |
#3 |
#7 |
#8 |
#1 |
Missing line |
Pins on the TTL connector of the EM1202EV-TM and "-TS" |
"Available signals" column shows a particular combination of I/O lines for each option. For example, option 0 defines the standard serial port arrangement with RX, TX, CTS, RTS, DSR, and DTR lines. Option 2 gives you one channel with RX, TX, CTS, and RTS lines, one more channel with just RX and TX lines, and yet another channel with a single RX line. The TX line is "missing" because, once again, there are only three outputs available. This is why this line is shown in grey lowercase (tx).