230
CHAPTER 13 SERIAL INTERFACE (UART0)
Preliminary User’s Manual U16035EJ1V0UM
(c) Transmission
The transmit operation is enabled when bit 7 (TXE0) of the asynchronous serial interface mode register 0
(ASIM0) is set (1). The transmit operation is started when transmit data is written to the transmit shift register
0 (TXS0). A start bit, parity bit, and stop bit(s) are automatically added to the data.
Starting the transmit operation shifts out the data in TXS0, thereby emptying TXS0, after which a transmit
completion interrupt request (INTST0) is issued.
The timing of the transmit completion interrupt request is shown in Figure 13-8.
Figure 13-8. Timing of Asynchronous Serial Interface Transmit Completion Interrupt Request
(i)
Stop bit length: 1 bit
TxD0 (output)
D0
D1
D2
D6
D7
Parity
STOP
START
INTST0
TxD0 (output)
D0
D1
D2
D6
D7
Parity
START
INTST0
STOP
Caution
Do not rewrite to the asynchronous serial interface mode register 0 (ASIM0) during a
transmit operation. Rewriting ASIM0 register during a transmit operation may disable
further transmit operations (in such cases, input a RESET to restore normal operation).
Whether or not a transmit operation is in progress can be determined via software using
the transmit completion interrupt request (INTST0) or the interrupt request flag (STIF0)
that is set by INTST0.
(ii) Stop bit length: 2 bits