2.2 Decoding

To decode the received data, the parity is calculated over the received data and compared to the received parity. If the calculated parity is equal to the received parity, the user data are received correctly. Otherwise, an XOR-operation of calculated and received parity gives information about the error position.
Table 2-3. Decoding
Pcalc ⊕ PrecData to CorrectComment
0Data correct
1P1Parity bit error
2P2Parity bit error
3d7Data bit error
4P4Parity bit error
5d6Data bit error
6d5Data bit error
7d4Data bit error
8P8Parity bit error
9d3Data bit error
10d2Data bit error
11d1Data bit error
12d0Data bit error
13Uncorrectable error
14Uncorrectable error
15Uncorrectable error
Example:
  • Received data = 0x574 (d1 swapped)
  • Prec = 0x4
  • Pcalc = 0xF (For more details, refer to Encoding for parity calculation)
  • Pcalc ⊕ Prec = 0xB (data bit d1 swapped)
  • Corrected user data = 0x55