ML610Q111/ML610Q112 User’s Manual
Chapter 12 UART
FEUL610Q111
12-16
12.3.4
Transmit Operation
Transmission is started by setting the UnIO bit of the UARTn mode register 0 (UA0MOD0) to “0” to select transmit mode
and setting the UnEN bit of the UARTn control register (UAnCON) to “1”.
Figure 12-5 shows the operation timing for transmission.
When the UnEN bit is set to “1” (
), the baud rate generator generates an internal transfer clock of the baud rate set and
starts transmission.
The start bit is output to the TXDn pin by the falling edge of the internal transfer clock (
). Subsequently, the transmitted
data, a parity bit, and a stop bit are output.
When the start bit is output (
), a UARTn interrupt is requested. In the UARTn interrupt routine, the next data to be
transmitted is written to the transmit/receive buffer (UAnBUF).
When the next data to be transmitted is written to the transmit/receive buffer (UAnBUF), the transmit buffer status flag
(UnFUL) is set to “1” (
) and a UARTn interrupt is requested on the falling edge of the internal transfer clock (
) after
transmission of the stop bit. If the UARTn interrupt routine is terminated without writing the next data to the
transmit/receive buffer, the UnFUL bit is not set to “1” (
) and transmission continues up to the transmission of the stop
bit, then the UnEN bit is reset to “0” and a UARTn 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. (
)
Figure 12-5 Operation Timing in Transmission
2nd data
1st data
Transmit/receive buffer
write enable period
UAnBUF write
instruction
UnEN set
instruction
SYSCLK
UAnBUF
UnEN
TXDn output
UAnINT
UnFUL
BRT
BRT
Start
0
1
2
7
Parity
Stop
Start
0
1
2
7
Parity
Stop
Transmit/receive buffer write
enable period
Internal
transfer clock
UnEN
setting signal
Содержание ML610Q111
Страница 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Страница 14: ...Chapter 1 Overview ...
Страница 26: ...Chapter 2 CPU and Memory Space ...
Страница 34: ...Chapter 3 Reset Function ...
Страница 38: ...Chapter 4 MCU Control Function ...
Страница 53: ...Chapter 5 Interrupts INTs ...
Страница 81: ...Chapter 6 Clock Generation Circuit ...
Страница 95: ...Chapter 7 Time Base Counter ...
Страница 103: ...Chapter 8 Timers ...
Страница 145: ...Chapter 9 Watchdog Timer ...
Страница 153: ...Chapter 10 PWM ...
Страница 199: ...Chapter 11 Synchronous Serial Port ...
Страница 212: ...Chapter 12 UART ...
Страница 240: ...Chapter 13 I2 C Bus Interface Master ...
Страница 254: ...Chapter 14 I2 C Bus Interface Slave ...
Страница 269: ...Chapter 15 Port A ...
Страница 279: ...Chapter 16 Port B ...
Страница 291: ...Chapter 17 Port C ...
Страница 303: ...Chapter 18 Port D ...
Страница 312: ...Chapter 19 Port AB Interrupts ...
Страница 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Страница 335: ...Chapter 21 Voltage Level Supervisor ...
Страница 342: ...Chapter 22 Analog Comparator ...
Страница 353: ...Chapter 23 Data Flash Memory ...
Страница 373: ...Chapter 24 On chip Debug ...
Страница 375: ...Appendixes ...
Страница 393: ...Appendix E ...
Страница 398: ...Revision History ...