Parity Types And Corresponding Operation - NEC V850ES/KE1+ User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

14.5.6 Parity types and corresponding operation

A parity bit is used to detect a bit error in communication data. Normally, the same type of parity bit is used on the
transmission and reception sides.
(1) Even parity
(i) During transmission
The parity bit is controlled so that the number of bits with the value "1" within the transmit data including
the parity bit is even. The parity bit value is as follows.
• If the number of bits with the value "1" within the transmit data is odd: 1
• If the number of bits with the value "1" within the transmit data is even: 0
(ii) During reception
The number of bits with the value "1" within the receive data including the parity bit is counted, and a
parity error is generated if this number is odd.
(2) Odd parity
(i) During transmission
In contrast to even parity, the parity bit is controlled so that the number of bits with the value "1" within the
transmit data including the parity bit is odd. The parity bit value is as follows.
• If the number of bits with the value "1" within the transmit data is odd: 0
• If the number of bits with the value "1" within the transmit data is even: 1
(ii) During reception
The number of bits with the value "1" within the receive data including the parity bit is counted, and a
parity error is generated if this number is even.
(3) 0 parity
During transmission the parity bit is set to "0" regardless of the transmit data.
During reception, no parity bit check is performed. Therefore, no parity error is generated regardless of
whether the parity bit is "0" or "1".
(4) No parity
No parity bit is added to the transmit data.
During reception, the receive operation is performed as if there were no parity bit. Since there is no parity bit,
no parity error is generated.
418
CHAPTER 14 ASYNCHRONOUS SERIAL INTERFACE (UART)
User's Manual U16896EJ2V0UD

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents