This page is the summary of me reading the reference manual, If there are missing info or incorrect info, please contact me at [email protected]
UART Main Features
- Full duplex asynchronous communcation
- Configurable oversampling (we will use 16 because we’re using a bad PLL input in HSI, so sacrificing speed is okay)
- USART_1 uses the APB2 bus, which runs for us at 90MHz. From here, we can safely use 115200 for a balance of speed and no error
- USART will be active during standby/stop modes if we use a clock that’s not turned off
- Data word length can be programmed (8 to simplify char)
- LSB shifting when going from shift register to TX/RX line
- 1/2 stop bits (we’ll probably just use one)
- TE and RE (TX/RX enable) bits for each thing
UART Functional Description
- Data frame itself (will go over below somewhere)
- Status Register (ISR)
- Receive and Transmit data registers (RDR and TDR)
- Baud Rate Register (BRR)
Character Description