FreeCalypso > hg > freecalypso-docs
annotate DUART-cable @ 28:3799892b1a79
Quadband-ideas article rewritten
for the new situation since Tango discovery
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 25 Jan 2020 22:41:11 +0000 |
parents | f7ed8c45a8ec |
children | 78c2cc6ebbb8 |
rev | line source |
---|---|
27
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 The Calypso chip has two UARTs, called MODEM and IrDA in the chip docs. The |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 primary UART (MODEM) has 4 signals (TxD, RxD, RTS and CTS), whereas the other |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 UART (IrDA) has data leads only (TxD and RxD). TI's C-Sample and D-Sample |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 boards have also established a convention whereby Calypso GPIOs 2 and 3 have |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 been assigned as supplementary modem control signals for the primary MODEM UART, |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 with GPIO 2 being an output from Calypso signaling DCD to the host and with |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 GPIO 3 being an input to Calypso receiving DTR from the host. Note that DSR |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 and RI are still missing in this arrangement. |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 In FreeCalypso we have further established our own convention: all FC hardware |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 products that bring out both Calypso UARTs do so by way of a single 10-pin (2x5) |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 2.54 mm header in a fixed pinout given below. This convention was started with |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 FCDEV3B, our first FC hw product, and is now being continued with MMTB1 and |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 other boards. Our standardized DUART header pinout is as follows: |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 Header pin Calypso signal |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 1 GND |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 2 GND |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 3 TX_IRDA |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 4 TX_MODEM |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 5 RX_IRDA |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 6 RX_MODEM |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 7 GPIO2_DCD |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 8 RTS_MODEM |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 9 GPIO3_DTR |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 10 CTS_MODEM |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 Pins 7 and 9 were originally left unused (they are unconnected on FCDEV3B), but |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 they have been assigned as DCD and DTR (from the host's perspective) starting |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 with MMTB1. Note that while DCD and DTR in the table above are named from the |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 host's perspective, all Calypso signals ending with _MODEM or _IRDA are from |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 the chip's perspective, i.e., the opposite. |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 Our standard recommended practice for connecting to our two UARTs from a regular |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 PC or laptop is to use FT2232D breakout boards from the following vendor: |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 http://pldkit.com/other/ft2232d-module |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 FT2232D is a versatile USB-to-various-things adapter, but in its default |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 configuration which we use here it acts as a bridge from USB to two UARTs, |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 presenting both UARTs behind a single USB device. The breakout board made and |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 sold by PLDkit has two rows of header pins, featuring 15 pins on each side, and |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 the two sides of the board neatly correspond to the A and B sides of FT2232D. |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 Our standard recommended method for connecting our two UARTs to a PLDkit FT2232D |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 board is to use a 10-wire ribbon cable that is custom-assembled as follows: |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 * One end is terminated with a 10-pin female connector that mates with the DUART |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 header on our modem boards; |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 * The other end is split into two parts as described below, and each split end |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 is terminated with a 15-pin female connector that mates with one side of the |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 FT2232D breakout board. |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 The split between A and B sides on the FT2232D end is not symmetric, instead 7 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 wires go to side A for the MODEM UART and 3 wires go to side B for the IrDA |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 UART. Assuming the standard color code, the 10-wire ribbon cable gets split |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 between violet and grey wires: brown to violet go to side A, grey to black go |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 to side B. After each wire has been stripped and fitted with a crimp-on female |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 terminal, FT2232D side A wires need to be inserted into the connector housing |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 as follows: |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 Wire Pin position FT2232D signal UART signal (host perspective) |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 brown 2 ADBUS0 TxD |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 red 3 ADBUS1 RxD |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 orange 4 ADBUS2 RTS |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 yellow 5 ADBUS3 CTS |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 green 6 ADBUS4 DTR |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 blue 8 ADBUS6 DCD |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 violet 15 GND GND |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 FT2232D side B wires need to be inserted into the other connector housing as |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 follows: |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 Wire Pin position FT2232D signal UART signal (host perspective) |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 grey 2 BDBUS0 TxD |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 white 3 BDBUS1 RxD |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 black 15 GND GND |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 The wires on the other end of the cable (also stripped and fitted with crimp-on |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 female terminals) need to be inserted into another connector housing that will |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 mate with the DUART connector on FreeCalypso modem boards; the pin assignment |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 is as follows: |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 Pin position Calypso signal Wire |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 1 GND black |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 2 GND violet |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 3 TX_IRDA white |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 4 TX_MODEM red |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 5 RX_IRDA grey |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 6 RX_MODEM brown |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 7 GPIO2_DCD blue |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 8 RTS_MODEM yellow |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 9 GPIO3_DTR green |
f7ed8c45a8ec
DUART-cable article written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 10 CTS_MODEM orange |