UART¶
UART short characteristics:
- full-duplex mode
- separate FIFO buffers, width 32 bytes for receive and transmit
- word is 8 bit (fixed)
- 1 stop bit
- dataflow control (CTS/RTS)
UART in examples on C and Assembler:¶
The sequence of operations for transmit:¶
1)Allow alternative functions GPIO
2)Initialize UART
3)Transmit
4)Check status register
The sequence of operations for receive:¶
1)Allow alternative functions GPIO
2)Initialize UART
3)Check status register
4)Receive