20.4.2.1.5 Checksum

For LIN mode, two kinds of checksum are available: legacy and enhanced. In legacy checksum, only data bytes D0 through D7 are used to calculate the checksum. In enhanced checksum, data bytes D0 through D7 and PID[5:0], P0 and P1 are included. The type of checksum used in the calculation can be controlled by software using the C0EN bit. Refer to LIN/J2602 for more information on the checksum calculation.

For all other modes, the C0EN bit is ignored and UART calculates the checksum for every transmitted or received byte. Checksum register UxCHK is cleared on receiving a Break sequence in all protocol modes. These registers can also be cleared by the user.