Calculate even and odd parity bits.
Formula
parity = XOR of bits
Even Parity Bit
—
Odd Parity Bit
Data + Even Parity