TEV-IB0

The TEV-IB0 implements one RS232/422/485 serial port. The port is built around the SIPEX SP334 multi-protocol transceiver IC. A small PIC10F200 microcontroller from MICROCHIP is also used. This microcontroller replaces discreet logic that would be needed to control the SP334 in different operating modes.

Two switches are provided on the board for protocol selection. Switch 1 selects between RS232 and RS422/485 signal levels. Switch 2 selects half-duplex or full-duplex mode of operation. Note that these switches only control the operation of the SP334. Serial ports of the EM1000 must be correctly preset for desired communication mode as well.

For your convenience, each TEV-IB0 is supplied with a TB100 terminal block adapter.


DB9M Connector Pin Assignment

A diagram of a DB9M connector.

Pin #

RS232 mode

RS422 mode

RS485 mode

1

---

RTS– (output)

---

2

RX (input)

RX– (input)

RX– (input)

3

TX (output)

TX+ (output)

TX+ (output)

4

DTR (output)

TX– (output)

TX– (output)

5

SYSTEM GROUND

SYSTEM GROUND

SYSTEM GROUND

6

DSR (input)

RX+ (input)

RX+ (input)

7

RTS (output)

RTS+ (output)

---

8

CTS (input)

CTS+ (input)

---

9

---

CTS– (input)

---


Required Tibbo BASIC/C Initialization Code

This section assumes that you are familiar with Tibbo BASIC/C and Tibbo IDE (TIDE).

The correct preset of serial ports falls outside the scope of this manual. This section will only remind you that you need to set a correct serial port mode matching the mode selected by the switches of the TEV-IB0. For the RS232 or RS422 modes, set ser.interface = PL_SER_SI_FULLDUPLEX. For the RS485 mode, set ser.interface = PL_SER_SI_HALFDUPLEX.

Do not forget that all lines of the EM1000 are configured as inputs by default. Any line that should work as an output should be configured as such. This is done through the io. object. The only exception is the TX line that becomes an output automatically once the serial port is enabled.


TEV-IB0

DB9M Connector Pin Assignment

Required Tibbo BASIC/C Initialization Code