SLLU379 March 2024 THVD4421
After the power supply of the THVD4421EVM has been configured, set up the board for operation. Before any operation of the board can occur, the operational mode and control pins must be configured. In Figure 3-1, the map to the J5 header pins is shown; assume that the board is oriented with J6 in the top left of the EVM. The numbered boxes correspond to the pin number for J9 as indicated in the schematic.
To select a configuration option, find the signal of interest on J5 according to Figure 3-1. If a low value is wanted, then shunt the top row header pin connected to the signal of interest to the pin on the left. If a high is wanted, then shunt the bottom row header pin connected to the signal of interest to the pin on the left. Next, the mode of operation is determined by the operational mode. This is controlled by the M0, and M1 connected to U1 by J5-11/12 and J5-15/16, respectively.
M1 (J5-15;J5-16) | M0 (J5-11;J5-12) | Mode | Comment |
---|---|---|---|
0 | 0 | RS-232 loopback | L3 reflects on L2/R2/R3; L4 reflects on L1/R4/R1. |
0 | 1 | RS-232 | 2T2R mode; L3, L4 are logic inputs for RS232 driver; L1, L2 are logic outputs. |
1 | 0 | Half duplex RS-485 | L2 is RX Logic output; L3 is Driver Logic input; R1/R2 are Bus inverting and non-inverting terminals, respectively. |
1 | 1 | RS-485 full duplex | R1/R2 are inverting and non-inverting driver terminals; R3/R4 are non-inverting and inverting receiver terminals. |
After the mode has been selected, the other features and control signals can be configured or connected to a signal source for the DIR and /SHDN signals.
Signal | Signal Jumper+ Pin ID | Associated GND Pin | Logic ‘0’ Operation | Associated VIO Pin | Logic ‘1’ Operation |
---|---|---|---|---|---|
SLR | J5-3; J5-4 | J5-2 | RS485: 20Mbps RS232: 1Mbps | J5-1 | RS485: 500kbps RS232: 250kbps |
DIR | J5-7; J5-8 | J5-6 | RS485: RX mode | J5-5 | RS485: TX mode |
TERM_TX | J5-23; J5-24 | J5-22 | RS485 TX: unterminated | J5-21 | RS485 TX: terminated with 120Ω |
TERM_RX | J5-27; J5-28 | J5-26 | RS485 RX: unterminated | J5-25 | RS485 RX: terminated with 120Ω |
/SHDN | J5-31; J5-32 | J5-30 | Device in shutdown mode | J5-29 | Device operational |
The mode pins along with the TERM_TX and TERM_RX pins must be configured before communication starts as opposed to changing during communication for proper operation.
All the various modes of the THVD4421 share the use of the logic pins (denoted with the prefix (L)) and the bus pins (denoted with the prefix (R)).
Logic pins are for use when interfacing the THVD4421 with a controller. The logic pins are supplied and bounded by the VIO voltage, which means that these pins can accept GND to VIO input voltages and can output GND to VIO voltages. All logic pins L1 – L4 are accessible through 4x2 headers J1-J4 that populate the left side of the board when oriented with J6 in the top left corner. Figure 3-2 shows the headers pinouts.
The function of each individual (L) pin depends on the mode in which the THVD4421 is being operated in.
Bus pins are the higher voltage tolerant pins for use with RS-485 or RS-232 depending on chosen operation mode. The bus pins are accessible in a few different ways depending on mode of use. Both RS-232 and RS-485 modes have all R pin signals routed to an 4x2 header J14. If every row of header J14 is shunted, then all signals R1-R4 are available on the D-SUB connector J18. If headers J12 and J13 are shunted, then R1 and R2 signals are available on terminal block J17. If headers J10 and J11 are shunted, then R3 and R4 signals are available on terminal block J16. A brief summary is given in the table below.
U1 Pin | Output Option 1 | Output Option 2 | Output Option 3 | Output Option 4 |
---|---|---|---|---|
R1 | J14; Row 1; Column 1 | J12; Column 1 | J17 (if J12 is shunted) | J18 (if J14 row 1 is shunted) |
R2 | J14; Row 2; Column 1 | J13; Column 1 | J17 (if J13 is shunted) | J18 (if J14 row 2 is shunted) |
R3 | J14; Row 3; Column 1 | J10; Column 1 | J16 (if J10 is shunted) | J18 (if J14 row 3 is shunted) |
R4 | J14; Row 4; Column 1 | J11; Column 1 | J16 (if J11 is shunted) | J18 (if J14 row 4 is shunted) |
How these pins are connected depends on the chosen operation mode and personal preference of the end user.
With an understanding of the general architecture of the device and EVM, a more thorough look at the RS-232 modes of operation is important. When entering the mode 001 for M1 and M0, respectively, the device enters RS-232.
Mode | L1 | L2 | L3 | L4 | R1 | R2 | R3 | R4 |
---|---|---|---|---|---|---|---|---|
01 | Not used | Console side RX | Console side input | Console side input | RS-232 bus input | RS-232 bus input | RS-232 bus output | RS-232 bus output |
This is commonly referred to as a 2T2R setup, as there are two transmitters and two receivers. At an individual transceiver level, the type of RS-232 signal being transmitter or received is not important to the transceiver as the PHY layer characteristics are the same regardless of RS-232 signal type. However, the specific configuration is generally used with the following RS-232 signals: TX, RX, RTS, and CTS. While this configuration of signals is not strictly required, most 2T2R RS-232 applications use these signals and require this configuration. If J18 (the DSUB connector) is used, then the pinout of the connector mimics the standard placement of the aforementioned RS-232 cables.
U1 Pin | Standard RS-232 Circuit Mnemonic | J18 Pin |
---|---|---|
R1 | RX | 2 |
R2 | CTS | 8 |
R3 | TX | 3 |
R4 | RTS | 7 |
Many RS-232 test plans typically require a loop back test. The THVD4421 integrates a RS-232 loopback mode to make testing quick and simple. When putting the device into mode 00 for M1 and M0, respectively, the THVD4421 enters RS-232 loopback mode. This creates shorts on R2 to R3 and R1 to R4. This configuration allows a signal on L1 to be received on L4, while also showing up on pins R1 and R4. The same can be applied when looking at R2 and R3.
Mode | L1 | L2 | L3 | L4 | R1 | R2 | R3 | R4 |
---|---|---|---|---|---|---|---|---|
00 | Loopback RX for L4 | Loopback RX for L3 | L3 -> R3 -> R2 -> L2 | L4 -> R4 -> R1 -> L1 | Shorted to R4 | Shorted to R3 | Shorted to R2 | Shorted to R1 |
With RS-232 operational modes covered, this is a brief overview of the RS-485 operation modes. There are two different operational modes of the RS-485 portion of the transceiver: half duplex and full duplex.
Half duplex operation is a very common implementation of RS-485 and entered when the mode is 10 for M1 and M0, respectively. In half duplex mode, the receive and transmit bus facing pins (denoted R# on the THVD4421) are shared by the transceiver; allowing for asynchronous bi-directional communication on two wires with the trade-off being that the bus can only have 1 driver at a time and a device cannot receive and transmit data simultaneously.
Mode | L1 | L2 | L3 | L4 | R1 | R2 | R3 | R4 |
---|---|---|---|---|---|---|---|---|
10 | Unused | Console side RX | Console side TX | Unused | Non-inverting bus facing pin | Inverting bus facing pin | Unused | Unused |
The termination resistor shown is disabled by default. In half duplex mode, TERM_RX is a don’t care value and the integrated termination is only controlled by TERM_TX. The driver input is connected to L3 and the RS-485 console side output is L2.
The next mode of operation is full duplex operation, which is mode 11 for M1 and M0, respectively. This mode of operation separates the driver and receiver of the RS-485 transceiver, which leads to a 4-signal wire interface.
Mode | L1 | L2 | L3 | L4 | R1 | R2 | R3 | R4 |
---|---|---|---|---|---|---|---|---|
10 | Unused | Console side RX | Console side TX | Unused | Non-inverting bus facing driver | Inverting bus facing driver | Non-inverting bus facing receiver | Inverting bus facing receiver |