Difference between revisions of "UART Frame"
From SpecNext official Wiki
(Created page with "{{Port |Number=$163B |NumberDec=5691 |PortMask=%0001 0110 0011 1011 |ShortDesc=UART Frame |Readable=Yes |Writable=Yes |Subsystem=UART }} 0x163B UART Frame (R/W) (hard reset =...") |
(Added the bit 7 "stickiness" explanation.) |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
|Subsystem=UART | |Subsystem=UART | ||
}} | }} | ||
− | 0x163B UART Frame | + | 0x163B UART Frame (R/W) (hard reset = 0x18) |
− | (R/W) (hard reset = 0x18) | + | bit 7 = 1 to immediately reset the Tx and Rx modules to idle and empty fifos |
− | bit 7 = 1 to immediately reset the Tx and Rx modules to idle and empty fifos | + | bit 6 = 1 to assert break on Tx (Tx = 0) when Tx reaches idle |
− | bit 6 = 1 to assert break on Tx (Tx = 0) when Tx reaches idle | + | bit 5 = 1 to enable hardware flow control * |
− | bit 5 = 1 to enable hardware flow control * | + | bits 4:3 = number of bits in a frame |
− | bits 4:3 = number of bits in a frame | + | 11 = 8 bits |
− | + | 10 = 7 bits | |
− | + | 01 = 6 bits | |
− | + | 00 = 5 bits | |
− | + | bit 2 = 1 to enable parity check | |
− | bit 2 = 1 to enable parity check | + | bit 1 = 0 for even parity, 1 for odd parity |
− | bit 1 = 0 for even parity, 1 for odd parity | + | bit 0 = 0 for one stop bit, 1 for two stop bits |
− | bit 0 = 0 for one stop bit, 1 for two stop bits | + | : * The esp ignores hardware flow control |
− | * The esp ignores hardware flow control | + | : * In joystick i/o mode only cts is available |
− | * In joystick i/o mode only cts is available | + | |
+ | Note: the bit 7 is "sticky", so to stop UART from continuing to reset an explicit reset of the bit 7 is needed. The "immediately" means that the emptying and clearing is completed in one cycle. Also consider that resetting the bit 7 too soon could result in UART continuing to perform transfers while the other side hasn't completed the transfer of a single byte, and data received after that point would still be invalid. |
Latest revision as of 18:45, 10 October 2024
Number | $163B |
---|---|
Decimal | 5691 |
Short desc. | UART Frame |
Bit Mask | %0001 0110 0011 1011 |
Readable | Yes |
Writable | Yes |
Subsystem | UART |
0x163B UART Frame (R/W) (hard reset = 0x18) bit 7 = 1 to immediately reset the Tx and Rx modules to idle and empty fifos bit 6 = 1 to assert break on Tx (Tx = 0) when Tx reaches idle bit 5 = 1 to enable hardware flow control * bits 4:3 = number of bits in a frame 11 = 8 bits 10 = 7 bits 01 = 6 bits 00 = 5 bits bit 2 = 1 to enable parity check bit 1 = 0 for even parity, 1 for odd parity bit 0 = 0 for one stop bit, 1 for two stop bits
- * The esp ignores hardware flow control
- * In joystick i/o mode only cts is available
Note: the bit 7 is "sticky", so to stop UART from continuing to reset an explicit reset of the bit 7 is needed. The "immediately" means that the emptying and clearing is completed in one cycle. Also consider that resetting the bit 7 too soon could result in UART continuing to perform transfers while the other side hasn't completed the transfer of a single byte, and data received after that point would still be invalid.