21.4.4 Parity Bit Calculation
The parity bit is always calculated using even parity. The value of the bit is calculated by doing an exclusive-or of all the data bits, as follows:
where:
- P: Parity bit using even parity
- D0-D7: Data bits of the character