Cable Assembly Designer

Also known as DTE-DCE Cable Designer

Wire RS-232, RS-422 and RS-485 cables pin to pin, from a DB9 null modem to an RS-485 bus, and check them before they are made.

Pro ● Live 9 standards

Included in the 14-day Pro trial on every new account. No credit card.

Loading the Cable Assembly Designer…

What it produces

DB9 pinout and RS-232 cable wiring

The designer draws both connectors with every pin's signal and direction, wires the standard cables itself (straight through, null modem, rollover and loopback) and lets you wire custom and Y cables pin to pin. What it produces is a numbered pin to pin wire list, including any loops made on one connector, for the harness maker and the project records.

On a 9 pin D-sub (DB9) RS-232 port, pin 2 is received data, pin 3 transmitted data and pin 5 signal ground. A null modem cable joins two DTE devices, such as two computers, so it crosses transmitted data to received data. The designer checks RS-232 cable capacitance and length against the 2500 pF limit of TIA-232-F, and RS-422 and RS-485 runs against their length for the data rate.

Standards

  • TIA-232-F (RS-232), including the 2500 pF cable and receiver capacitance limit
  • TIA-422-B (RS-422) and TIA-485-A (RS-485) signalling, and the TIA-485-A limit of 32 unit loads
  • EIA-530 and EIA-449 pinouts for RS-422 on DB25 and DC-37 connectors
  • EIA-561 RJ45 pinout for RS-232, and the Modbus over Serial Line RJ45 pinout for 2-wire RS-485
  • JEDEC JESD8C.01 and JESD8-7A logic levels for the level compatibility check

Sample

Sample: DB9 null modem cable pinout

A 3 wire null modem cable between two DTE devices, such as two computers, with a DB9 at each end and the handshake lines looped back at each connector.

WireFrom pinFrom signalTo pinTo signal
Cable3TD2RD
Cable2RD3TD
Cable5GND5GND
Loop at each end7RTS8CTS
Loop at each end4DTR6DSR
Loop at each end6DSR1DCD

The full handshake null modem uses seven cable conductors: the data lines cross, pin 7 RTS connects to pin 8 CTS and pin 4 DTR to pin 6 DSR in each direction, and signal ground runs straight through. Pins 6 DSR and 1 DCD are linked locally at each end, giving nine connections including the two local jumpers. A straight through cable, DTE to DCE, joins each signal to the same signal at the other end.

Walkthrough

See the full calculator

Step 01

Start from a protocol preset or your own settings

Choose an industrial protocol preset, such as Modbus RTU or PROFIBUS DP, to set a typical standard, frame format, cable and termination. Leave the preset blank to start from your own settings.

Step 02

Choose the standard, topology and connectors

Choose RS-232, RS-422 or RS-485, a point to point or Y splitter topology, the connector at each end and the cable type.

Step 03

Wire the connectors

Standard cable types wire automatically. For a custom cable, join pins on the diagram and rename signal labels where needed.

Step 04

Check the cable against the standard

Choose a cable, length and baud rate. The tool works out capacitance, loop resistance, rise time and propagation delay, compares the length with the TIA limit for the standard, and marks each parameter as a pass, warning or fail.

Step 05

Solve the UART baud rate divisor

Enter the frame format and the clock frequency. The tool solves the divisor and reports the achieved baud rate, the error against the largest mismatch the frame can tolerate, and the bit and frame times.

Step 06

Check the RS-485 bus and choose a transceiver

For an RS-485 design, check the total unit load against the 32 unit load limit, size the fail-safe bias resistors and check the stub length. The tool also suggests a transceiver that suits the data rate, node count, isolation and common mode requirements.

Step 07

Check RS-232 level compatibility

Choose two RS-232 or TTL level devices to compare each driver output with the other receiver's threshold, including polarity, and see whether a level converter is needed.

Step 08

Read the wire list and pinout reference

The wire list numbers every connection from end to end and lists unconnected pins. The pinout reference covers RS-232, RS-422 and RS-485 on the common serial connectors.

Step 09

Save and export

Save the design in your browser, export the wire list as CSV, and print or download the build sheet. Downloads need a free account.

FAQ

Frequently asked questions

Not here? Ask us

What is the DB9 RS-232 pinout?

On a 9 pin D-sub (DE-9, usually called DB9) RS-232 port, pin 1 is DCD (data carrier detect), 2 RD (received data), 3 TD (transmitted data), 4 DTR (data terminal ready), 5 signal ground, 6 DSR (data set ready), 7 RTS (request to send), 8 CTS (clear to send) and 9 RI (ring indicator). These are the names at a DTE, such as a computer. On a 25 pin D-sub the same signals are on pins 8, 3, 2, 20, 7, 6, 4, 5 and 22.

What is the difference between a null modem and a straight through cable?

A straight through cable joins a DTE, such as a computer, to a DCE, such as a modem, with each signal going to the same signal at the other end. A null modem cable joins two DTEs, so it crosses transmitted data to received data and, in the full handshake version, RTS to CTS and DTR to DSR, with a local DSR to DCD link at each connector. The 3 wire preset crosses data and connects signal ground. A separate local handshake links preset adds the loops shown in the worked example.

Which serial standards and connectors are covered?

The designer covers RS-232, RS-422 and RS-485 in both two wire and four wire forms. Hardware choices include standard and high density D-sub, Micro-D, RJ45 and RJ50, terminal blocks, and the circular 9-98 and 13-4 contact arrangements. Custom rectangular, circular and terminal layouts support up to 256 contacts with your own labels. A connector does not imply a signal assignment: select a documented pinout or define a custom one.

How is the maximum cable length worked out?

For RS-232 the limit is the 2500 pF total capacitance allowed by TIA-232-F: the tool takes 2500 pF less the receiver's input capacitance and divides it by the cable's capacitance per metre, conductor to conductor plus conductor to shield, as TI application report SLLA037A does. For RS-422 and RS-485 it uses the rule in TI application report SLLA070D, length in metres times data rate in bit/s at most 10⁸, up to 1200 m, so 9600 bit/s allows 1200 m and 1 Mbit/s 100 m. It also gives the RC rise time as a share of the bit time, graded only against limits you set, since no standard sets one.

How is the UART baud rate error calculated?

The tool divides the clock frequency by sixteen times the target baud rate, rounds to a whole divisor and works out the baud rate actually achieved. The error between the two is compared with the most the receiver can absorb: with sixteen times oversampling and a three sample vote, 0.375 of a bit by the centre of the first stop bit, which is 3.95 per cent for 8 data bits and no parity. The far end's own clock error adds to it. A table shows the same calculation for each standard baud rate.

Is there a free serial cable designer, and where are designs saved?

Yes. The basic designer at the top of this page is free and needs no account. Choose the interface, the connector at each end and a standard wiring, such as straight through or null modem, and it draws both connector faces, lists every wire and checks the cable length for the data rate. It saves and exports nothing. The full designer adds custom wiring, harnesses, shields, assembly and test sheets, and the UART, RS-485 bus and level checks. Its projects hold as many cables as the job needs and save to your account as you work, and it exports editable project files, CSV wire lists and PDF build packs.

Free for 14 days

Included in the 14-day Pro trial on every new account. No credit card.