
353
CHAPTER 16
SERIAL INTERFACE UART0 (
PD178076, 178078, AND 178F098 ONLY)
User’s Manual U12790EJ2V0UD
(2) Asynchronous serial interface status register 0 (ASIS0)
This register indicates the type of error when a reception error occurs in the UART mode.
ASIS0 is set by an 8-bit memory manipulation instruction.
The value of this register is initialized to 00H after reset.
Figure 16-4. Format of Asynchronous Serial Interface Register 0 (ASIS0)
PE0
Parity error flag
0
No parity error
1
Parity error occurred
(if parity of transmit data did not match).
FE0
Framing error flag
0
No framing error
1
Framing error occurredNote 1
(if stop bit was not detected).
OVE0
Overrun error flag
0
No overrun error
1
Overrun error occurredNote 2
(if next reception operation was completed before
data was read from receive buffer register 0).
Notes 1. Even when the stop bit length is set to 2 bits by bit 2 (SL0) of asynchronous serial interface mode
register 0 (ASIM0), only 1 stop bit is detected during reception.
2. Be sure to read receive buffer register 0 (RXB0) if an overrun error has occurred.
Until RXB0 is read, the overrun error will persistently occur each time data is received.
(3) Baud rate generator control register 0 (BRGC0)
This register sets the serial clock of serial interface UART0.
BRGC0 is set by an 8-bit memory manipulation instruction.
The value of this register is initialized to 00H after reset.
Figure 16-5 shows the format of BRGC0.
Symbol
ASIS0
7
0
6
0
5
0
4
0
3
0
2
PE0
1
FE0
0
OVE0
R/W
R
After reset
00H
Address
FF5BH