25.3.1 Initialization
Full-Duplex Mode:
- Set the baud rate (USARTn.BAUD).
- Set the mode of operation (USARTn.CTRLA).
- Enable the transmitter and the receiver (USARTn.CTRLB).
- Configure the frame format (USARTn.CTRLC and USARTn.CTRLD).
- Enable the USART (USARTn.CTRLA).
One-Wire Half-Duplex Mode:
- Internally connect the TXD to the USART receiver (the LBME bit in the USARTn.CTRLE register).
- Enable internal pull-up for the RX/TX pin (the PULLUPEN bit in the PORTx.PINnCTRL register).
- Enable Open-Drain mode (the ODME bit in the USARTn.CTRLE register).
- Perform the initialization steps for Full-Duplex Mode as described above.
