![LAPIS Semiconductor ML610472 User Manual Download Page 157](http://html1.mh-extra.com/html/lapis-semiconductor/ml610472/ml610472_user-manual_3645865157.webp)
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 11 UART
11-16
11.3.5 Receive Operation
Select the received data pin using the U0RSEL bit of the UART0UART0 mode register 0 (UA0MOD0). Select the
receive mode by setting the U0IO bit of the UART0 mode register 0 (UA0MOD0) to "1". Then, set the U0EN bit of the
UART0 control register (UA0CON) to "1" to start receiving data.
Figure 11-6 shows the operation timing for reception.
When receive operation starts, the LSI checks the data sent to the input pin RXD0 and waits for the arrival of a start bit.
When detecting a start bit (
c
), the LSI generates the internal transfer clock of the baud rate set with the start bit detect
point as a reference and performs receive operation.
The shift register shifts in the data input to RXD on the rising edge of the internal transfer clock. The data and parity bit
are shifted into the shift register and 5- to 8- bit received data is transferred to the transmit/receive buffer (UA0BUF)
concurrently with the fall of the internal transfer clock of
e
.
The LSI requests a UART0 interrupt on the rising edge of the internal transfer clock subsequent to the internal transfer
clock by which the received data was fetched (
f
) and checks for a stop bit error and a parity bit error. When an error is
detected, the LSI sets the corresponding bit of the UART0 status register (UA0STAT) to “1”.
Parity error
: S0PER
=“1”
Overrun error
:
S0OER
=“1”
Framing error
: S0FER
=“1”
As shown in Figure 11-6, the rise of the internal transfer clock is set so that it may fall into the middle of the bit interval
of the received data.
Reception continues until the U0EN bit is reset to “0” by the program. When the U0EN bit is reset to “0” during
reception, the received data may be destroyed. When the U0EN bit is reset to “0” during the “U0EN reset enable period”
in Figure 11-6, the received data is protected.
Summary of Contents for ML610472
Page 12: ...Chapter 1 Overview...
Page 38: ...Chapter 2 CPU and Memory Space...
Page 44: ...Chapter 3 Reset Function...
Page 48: ...Chapter 4 MCU Control Function...
Page 62: ...Chapter 5 Interrupts...
Page 82: ...Chapter 6 Clock Generation Circuit...
Page 94: ...Chapter 7 Time Base Counter...
Page 105: ...Chapter 8 Capture...
Page 114: ...Chapter 9 Timer...
Page 133: ...Chapter 10 Watchdog Timer...
Page 141: ...Chapter 11 UART...
Page 164: ...Chapter 12 Port 0...
Page 173: ...Chapter 13 Port 2...
Page 180: ...Chapter 14 Port 3...
Page 188: ...Chapter 15 Port 4...
Page 199: ...Chapter 16 Port 6...
Page 205: ...Chapter 17 RC Oscillation Type A D Converter...
Page 225: ...Chapter 18 LCD Drivers...
Page 243: ...Chapter 19 Power Supply Circuit...
Page 245: ...Chapter 20 uEASE Flash Writer System...
Page 249: ...Chapter 21 Software Development...
Page 258: ...Appendixes...
Page 280: ...Revision History...