NEC 78K0 Series User Manual page 367

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

(b) Parity types and operation
The parity bit is used to detect a bit error in communication data. Usually, the same type of parity bit is used
on both the transmission and reception sides. With even parity and odd parity, a 1-bit (odd number) error
can be detected. With zero parity and no parity, an error cannot be detected.
Caution Fix the PS61 and PS60 bits to 0 when the device is incorporated in LIN.
(i)
Even parity
• Transmission
Transmit data, including the parity bit, is controlled so that the number of bits that are "1" is even.
The value of the parity bit is as follows.
If transmit data has an odd number of bits that are "1": 1
If transmit data has an even number of bits that are "1": 0
• Reception
The number of bits that are "1" in the receive data, including the parity bit, is counted. If it is odd, a
parity error occurs.
(ii) Odd parity
• Transmission
Unlike even parity, transmit data, including the parity bit, is controlled so that the number of bits that
are "1" is odd.
If transmit data has an odd number of bits that are "1": 0
If transmit data has an even number of bits that are "1": 1
• Reception
The number of bits that are "1" in the receive data, including the parity bit, is counted. If it is even, a
parity error occurs.
(iii) 0 parity
The parity bit is cleared to 0 when data is transmitted, regardless of the transmit data.
The parity bit is not detected when the data is received. Therefore, a parity error does not occur
regardless of whether the parity bit is "0" or "1".
(iv) No parity
No parity bit is appended to the transmit data.
Reception is performed assuming that there is no parity bit when data is received. Because there is no
parity bit, a parity error does not occur.
CHAPTER 15 SERIAL INTERFACE UART6
Preliminary User's Manual U17260EJ3V1UD
367

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents