Skip to content

Commit

Permalink
applet.interface.uart: improve description. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark authored and attie committed Nov 13, 2023
1 parent 91e40d3 commit d96fb71
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions software/glasgow/applet/interface/uart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ class UARTApplet(GlasgowApplet):
description = """
Transmit and receive data via UART.
Any baud rate is supported. Only 8n1 mode is supported.
NOTE: The automatic baud rate algorithm requires a burst of data, and will lock on to the
shortest bit-times present in the stream... updates only occur on frame or parity errors, and
and random data will help.
Any baud rate is supported. Only 8 start bits and 1 stop bits are supported, with configurable
parity.
The automatic baud rate determination algorithm works by locking onto the shortest bit time in
the receive stream. It will determine the baud rate incorrectly in presence of glitches as well
as insufficiently diverse data (e.g. when receiving data consisting only of the letter "a",
the baud rate that is determined will be one half of the actual baud rate). To reduce spurious
baud rate changes, the algorithm is only consulted when frame or (if enabled) parity errors
are present in received data.
"""

__pins = ("rx", "tx")
Expand Down

0 comments on commit d96fb71

Please sign in to comment.