summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2023-04-04 16:12:45 +0200
committerDamien George <damien@micropython.org>2023-05-23 09:53:24 +1000
commit20fd22edad051384b9cd929d925a91d607fbed8d (patch)
tree561059c26e499fdc8096571292d1ffa874b4dcf4 /docs
parent2a38531d73a9795c479635162c0609f6328e088c (diff)
samd/machine_uart: Add support for UART hardware flow control.
By specifying rts=pin(x) and/or cts=Pin(x) in the constructor. The pad numbers for the UART pins are fix in this case: TX must be at pad 0, RX at pad 1, RTS at pad 2 and CTS at pad 3. repr(uart) shows the pin names for rts and cts, if set. In case of a RX overflow, the rx interrupt will be disabled instead of just discarding the data. That allows RTS to act. If RTS is inactive, still 2 bytes can be buffered in the FIFO. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/samd/pinout.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/samd/pinout.rst b/docs/samd/pinout.rst
index 702da2c17..64db455ea 100644
--- a/docs/samd/pinout.rst
+++ b/docs/samd/pinout.rst
@@ -83,7 +83,9 @@ Examples for Adafruit ItsyBitsy M0 Express:
- uart 4 at pins D2/D5
- uart 5 at pins SCL/SDA
-or other combinations.
+or other combinations. For hardware flow control, tx must be at pad 0, rx at pad 1,
+rts at pad 2 and cts at pad 3. This applies for instance to
+UART 3 or UART 1 at the pins D13/D11/D10/D12 for rx/tx/rts/cts.
SAMD21 I2C assignments
``````````````````````
@@ -214,7 +216,9 @@ Examples for Adafruit ItsyBitsy 4 Express:
- uart 4 at pins SDA/SCL
- uart 5 at pins D12/D13
-or other combinations.
+or other combinations. For hardware flow control, tx must be at pad 0, rx at pad 1,
+rts at pad 2 and cts at pad 3. This applies for instance to
+UART 5 at the pins D12/D13/D10/D11 for rx/tx/rts/cts.
SAMD51 I2C assignments
``````````````````````