UART TX

From SpecNext Wiki
Revision as of 11:13, 4 May 2020 by Ped7g (talk | contribs) (fixing the port function description by text from current "ports.txt")
Jump to: navigation, search
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

Write:

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:

bit 2 = 1 if the read buffer is full
bit 1 = 1 if the transmitter is busy sending a byte
bit 0 = 1 if the read buffer contains received bytes