Mitsubishi Electric M32R Series User Manual page 570

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

12
ST : Start bit
D : Data bit
Clock-synchronous mode
7-bit UART mode
8-bit UART mode
9-bit UART mode
Note 1: Whether or not to add a parity bit is selectable.
Note 2: The stop bit can be one bit or two bits long as selected.
When transmitting
If the attribute (odd/even) of the number of 1's
included in data bits agrees with the selected
parityattribute, a 0 is added as parity bit. If the
attribute (odd/even) of the number of 1's included
in data bits does not agree with the selected
parity attribute, a 1 is added as parity bit.
LSB
ST
D7
D6 D5
Attribute of D7 + D6 + ... +D0
When it agrees with the
selected parity attribute,
PAR = 0 is added.
When it agrees with the
selected parity attribute,
PAR = 0 is added.
Note 1: Shown above is an example of data format in 8-bit UART mode.
Note 2: The data bit numbers (Dn) above indicate bit numbers in a data list, and not the register bit numbers (Dn).
Figure 12.2.4 Data Format when Parity is Enabled
PAR : Parity bit
SP
: Stop bit
Direction of transfer
D7
ST
D6
ST
D7
ST
D8
MSB
D0 PAR SP
D4 D3
D2 D1
12.2 Serial I/O Related Registers
: One frame equivalent
D6
D5
D4
D3
D2
D5
D4
D3
D2
D1
D6
D5
D4
D3
D2
D7
D6
D5
D4
D3
When receiving
Received data is checked to see if the number
of 1's included in its data bits and the parity bit
agrees with the parity attribute (known as parity
check).
LSB
ST
D7
D6 D5
If the result of D7 + D6 + ... D0 + PAR does not
agree with the selected parity attribute, a parity
error is assumed.
12-20
SERIAL I/O
D1
D0
Note 1 Note 2
D0 PAR SP
Note 1 Note 2
D1
D0 PAR
SP
Note 1 Note 2
D2
D1
D0 PAR SP
MSB
D0 PAR SP
D4 D3
D2 D1
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents