Understanding UART
UART (otherwise known as RS232 or serial) is a time-based protocol. The data travels on two wires.
From the MCU point of view, they are named as follows:
- RX (Receive): The wire on which data comes from the peripheral
- TX (Transmit): The wire on which data goes to the peripheral
The flow control can come in two main flavors:
- With hardware flow control: Two additional control wires control the flow of the data. This hardware flow control itself can come in two flavors: either with control from the master, CTS (Clear To Send), or from the slave, DTR (Data Terminal Ready).
- Without hardware flow control: UART without hardware flow control only takes care of "transporting the bits." There is no logic layer to it.
Error detection is also possible in the form of a parity bit added at the end of the transmission.
It can connect multiple devices but is not taking care of the addressing (the payload will have to take care of this). It also serves as a base of multiple...