UART TX: Difference between revisions

From SpecNext Wiki
Jump to: navigation, search
Ped7g (talk | contribs)
fixing the port function description by text from current "ports.txt"
Em00k (talk | contribs)
No edit summary
 
Line 8: Line 8:
|Subsystem=UART
|Subsystem=UART
}}
}}
Write:
0x133B UART Tx
: send a byte to the connected device.  There is no Tx buffer so the program must make sure the last transmission is completed before sending another byte.


Read:
(R)
: bit 2 = 1 if the read buffer is full
:bit 7 = 1 if the Rx is in a break condition      ; external device has held Tx=0 for at least 20 bit periods
: bit 1 = 1 if the transmitter is busy sending a byte
:bit 6 = 1 if the Rx experienced a framing error  ; (clears on read, includes parity and stop bit errors)
: bit 0 = 1 if the read buffer contains received bytes
:bit 5 = 1 if the next Rx byte was received after an error condition was detected (framing, overflow)
:bit 4 = 1 if the Tx buffer is empty
:bit 3 = 1 if the Rx buffer is near full (3/4)
:bit 2 = 1 if the Rx buffer overflowed            ; (clears on read)
:bit 1 = 1 if the Tx buffer is full
:bit 0 = 1 if the Rx buffer contains bytes
 
(W)
:Send a byte to the connected device.

Latest revision as of 22:05, 1 July 2022

Number PortNumber::$133B
Decimal NumberDec::4923
Short desc. ShortDesc::Sends byte to serial port. If read, tells if data in RX buffer
Bit Mask [[PortMask::%0001 0011 0011 1011]]
Readable Readable::Yes
Writable Writable::Yes
Subsystem Subsystem::UART

0x133B UART Tx

(R)

bit 7 = 1 if the Rx is in a break condition  ; external device has held Tx=0 for at least 20 bit periods
bit 6 = 1 if the Rx experienced a framing error  ; (clears on read, includes parity and stop bit errors)
bit 5 = 1 if the next Rx byte was received after an error condition was detected (framing, overflow)
bit 4 = 1 if the Tx buffer is empty
bit 3 = 1 if the Rx buffer is near full (3/4)
bit 2 = 1 if the Rx buffer overflowed  ; (clears on read)
bit 1 = 1 if the Tx buffer is full
bit 0 = 1 if the Rx buffer contains bytes

(W)

Send a byte to the connected device.