Commit c1cfe66
committed
app: Change CTS pull-down to pull-up
Previously CTS was pulled up, this prevented hosts without
hardware flow control from using the default Serial Modem build.
Changing CTS to pull-down allows Serial Modem to send even
when the CTS and RTS pins float.
This relies in DTR as main mechanism for UART control. The host
must first enable its own UART before it enables Serial Modem
UART with DTR.
- With hardware flow control, this means that host drives it's
RTS pin, so there is no difference in operation.
Host should also have a pull-up for it's CTS pin, so when SM
starts driving it's RTS, the host knows that SM is ready to
receive.
- Without hardware flow control, the Serial Modem is able to
send (TX) to host. However, the timing with DTR and when
SM is able to receive needs to be taken into account as
host cannot observe it's CTS. Instead host must monitor the
RI signal, which is de-asserted when SM UART is ready.
Or alternatively, have a sufficient timeout between host
asserting DTR and host's first TX operation.
Important: It is highly recommended to use hardware flow control
with Serial Modem.
Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>1 parent 1ca70e7 commit c1cfe66
2 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
33 | 65 | | |
34 | 66 | | |
35 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments