12
12-17
Serial I/O
12.2 Serial I/O Related Registers
32180 Group User's Manual (Rev.1.0)
•
When transmitting
If the attribute (odd/even) represented by the
number of 1's in data bits agrees with the selected
parity attribute, a parity bit "0" is added. If the
attribute (odd/even) represented by the number of 1's
in data bits does not agree with the selected parity
attribute, a parity bit "1" is added.
b7
b6
b5
b4
b3
b2
b1
b0
PAR SP
ST
Attribute derived from b7 + b6 + ... + b0
If it agrees with the selected
parity attribute, PAR = "0" is added.
If it does not agree with the selected
parity attribute, PAR = "1" is added.
LSB
MSB
•
When receiving
The received data is checked to see if the number of
1's included in its data and parity bits agrees with
the parity attribute (known as parity check).
b7
b6
b5
b4
b3
b2
b1
b0
PAR SP
ST
LSB
MSB
If the result of b7 + b6 + ... + b0 + PAR does not agree
with the selected parity attribute, a parity error is assumed
Notes : • Shown above is an example of a data format in 8-bit UART mode.
• The data bit numbers (bn) above indicate bit numbers in a data list, and not the register bit numbers (bn).
b8
b7
b6
b5
b4
b3
b2
b1
PAR
SP
ST
b0
•
9-bit UART mode
b7
b6
b5
b4
b3
b2
b1
b0
PAR
SP
ST
•
8-bit UART mode
b6
b5
b4
b3
b2
b1
b0
PAR
SP
ST
(Note 1)
•
7-bit UART mode
b7
b6
b5
b4
b3
b2
b1
•
Clock-synchronous mode
b0
Note 1: Whether or not to add a parity bit is selectable.
Note 2: The stop bit can be chosen to be one bit or two bits long.
Direction of transfer
ST : Start bit PAR : Parity bit : One frame equivalent
b : Data bits SP : Stop bit
(Note 2)
(Note 1)
(Note 1)
(Note 2)
(Note 2)
Figure 12.2.7 Data Format When Parity is Enabled
Summary of Contents for M32R/ECU Series
Page 17: ...12 This page is blank for reasons of layout...
Page 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Page 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Page 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Page 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Page 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...