
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 11 UART
11-14
11.3.4 Transmit Operation
Transmission is started by setting the U0IO bit of the UART0 mode register 0 (UA0MOD0) to “0” to select transmit
mode and setting the U0EN bit of the UART0 control register (UA0CON) to “1”.
Figure 11-5 shows the operation timing for transmission.
When the U0EN bit is set to “1” (
c
), the baud rate generator generates an internal transfer clock of the baud rate set and
starts transmission.
The start bit is output to the TXD0 pin by the falling edge of the internal transfer clock (
d
). Subsequently, the transmitted
data, a parity bit, and a stop bit are output.
When the start bit is output (
d
), a UART0 interrupt is requested. In the UART0 interrupt routine, the next data to be
transmitted is written to the transmit/receive buffer (UA0BUF).
When the next data to be transmitted is written to the transmit/receive buffer (UA0OBUF), the transmit buffer status flag
(U0FUL) is set to “1” (
e
) and a UART0 interrupt is requested on the falling edge of the internal transfer clock (
f
) after
transmission of the stop bit. If the UART0 interrupt routine is terminated without writing the next data to the
transmit/receive buffer, the U0FUL bit is not set to “1” (
g
) and transmission continues up to the transmission of the stop
bit, then the U0EN bit is reset to “0” and a UART0 interrupt is requested.
The valid period for the next transmit data to be written to the transmit/receive buffer is from the generation of an
interrupt to the termination of stop bit transmission. (
h
)
Содержание ML610471
Страница 12: ...Chapter 1 Overview...
Страница 38: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 48: ...Chapter 4 MCU Control Function...
Страница 62: ...Chapter 5 Interrupts...
Страница 82: ...Chapter 6 Clock Generation Circuit...
Страница 94: ...Chapter 7 Time Base Counter...
Страница 105: ...Chapter 8 Capture...
Страница 114: ...Chapter 9 Timer...
Страница 133: ...Chapter 10 Watchdog Timer...
Страница 141: ...Chapter 11 UART...
Страница 164: ...Chapter 12 Port 0...
Страница 173: ...Chapter 13 Port 2...
Страница 180: ...Chapter 14 Port 3...
Страница 188: ...Chapter 15 Port 4...
Страница 199: ...Chapter 16 Port 6...
Страница 205: ...Chapter 17 RC Oscillation Type A D Converter...
Страница 225: ...Chapter 18 LCD Drivers...
Страница 243: ...Chapter 19 Power Supply Circuit...
Страница 245: ...Chapter 20 uEASE Flash Writer System...
Страница 249: ...Chapter 21 Software Development...
Страница 258: ...Appendixes...
Страница 280: ...Revision History...