24.3.2.2.1 Parity
Even or odd parity can be selected for error checking by writing the Parity Mode bits (PMODE) in the Control C register (USARTn.CTRLC). If even parity is selected, the parity bit is set to ‘1’ if the number of logical ‘1’ data bits is odd (making the total number of logical ‘1’ even). If odd parity is selected, the parity bit is set to ‘1’ if the number of logical ‘1’ data bits is even (making the total number of ‘1’s odd).
When enabled, the parity checker calculates the parity of the data bits in incoming frames and compares the result with the parity bit of the corresponding frame. If a parity error is detected, the parity error flag is set.