![NEC mPD780065 Series Preliminary User'S Manual Download Page 202](http://html.mh-extra.com/html/nec/mpd780065-series/mpd780065-series_preliminary-users-manual_249264202.webp)
202
CHAPTER 13 SERIAL INTERFACE (UART0)
Preliminary User’s Manual U13420EJ2V0UM00
(b) Parity types and operations
The parity bit is used to detect bit errors in transfer data. Usually, the same type of parity bit is used by the
transmitting and receiving sides. When odd parity or even parity is set, errors in the parity bit (the odd-number
bit) can be detected. When zero parity or no parity is set, errors are not detected.
(i)
Even parity
• During transmission
The number of bits in transmit data that includes a parity bit is controlled so that there are an even
number of bits whose value is 1. The value of the parity bit is as follows.
If the transmit data contains an odd number of bits whose value is 1: the parity bit is “1”
If the transmit data contains an even number of bits whose value is 1: the parity bit is “0”
• During reception
The number of bits whose value is 1 is counted among the transfer data that include a parity bit, and
a parity error occurs when the counted result is an odd number.
(ii) Odd parity
• During transmission
The number of bits in transmit data that includes a parity bit is controlled so that there is an odd number
of bits whose value is 1. The value of the parity bit is as follows.
If the transmit data contains an odd number of bits whose value is 1: the parity bit is “0”
If the transmit data contains an even number of bits whose value is 1: the parity bit is “1”
• During reception
The number of bits whose value is 1 is counted among the transfer data that include a parity bit, and
a parity error occurs when the counted result is an even number.
(iii) Zero parity
During transmission, the parity bit is set to “0” regardless of the transmit data.
During reception, the parity bit is not checked. Therefore, no parity errors will occur regardless of
whether the parity bit is a “0” or a “1”.
(iv) No parity
No parity bit is added to the transmit data.
During reception, receive data is regarded as having no parity bit. Since there is no parity bit, no parity
errors will occur.
Summary of Contents for mPD780065 Series
Page 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Page 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...