Download Renesas Electronics

Transcript
CHAPTER 17
ASYNCHRONOUS SERIAL INTERFACE/3-WIRE SERIAL I/O
(2) Communication operation
(a) Data format
The transmission/reception data format consists of a start bit, character bits, parity bit, and stop bit(s) forming
character frames, as shown in Figure 17-7.
Specification of the character bit length inside data frames, selection of the parity, and selection of the stop
bit length, are performed with asynchronous serial interface mode register n (ASIMn).
Figure 17-7. Asynchronous Serial Interface Transmit/Receive Data Format
1-data frame
Start
bit
D0
D1
D2
D3
D4
D5
D6
D7
Parity
Stop bit(s)
bit
Character bit
• Start bit .........................
1 bit
• Character bits ..............
7 bits/8 bits
• Parity bit .......................
Even parity/Odd parity/0 parity/No parity
• Stop bit(s) ....................
1 bit/2 bits
If 7 bits has been selected as the number of character bits, only the lower 7 bits (bits 0 to 6) are valid. In
the case of transmission, the highest bit (bit 7) is ignored. In the case of reception, the highest bit (bit 7)
always becomes “0”.
The setting of the serial transfer rate is performed with asynchronous serial interface mode register n (ASIMn)
and baud rate generator control register n (BRGCn).
If a serial data reception error occurs, it is possible to determine the contents of the reception error by reading
the status of asynchronous serial interface status register n (ASISn).
Remark n = 1, 2
310
User’s Manual U13570EJ3V1UD