30.3.4.1 Break and Sync Transmit Sequence
The following sequence will start a message frame header made up of a Break, followed by an auto-baud Sync byte. This sequence is typical of a LIN bus host.
- Configure the EUSART for the desired mode.
- Set the TXEN and SENDB bits to enable the Break sequence.
- Load the TXxREG with a dummy character to initiate transmission (the value is ignored).
- Write ‘
55h
’ to TXxREG to load the Sync character into the transmit FIFO buffer. - After the Break has been sent, the SENDB bit is reset by hardware and the Sync character is then transmitted.
When the TXxREG becomes empty, as indicated by TXxIF, the next data byte can be written to TXxREG.