Datasheet

Table Of Contents
Section 13 Serial Communication Interface
Page 464 of 846 REJ09B0140-0900 Rev. 9.00
Sep 16, 2010
H8S/2215 Group
13.10 Usage Notes
13.10.1 Break Detection and Processing (Asynchronous Mode Only)
When framing error detection is performed, a break can be detected by reading the RxD pin value
directly. In a break, the input from the RxD pin becomes all 0s, setting the FER flag, and possibly
the PER flag. Note that as the SCI continues the receive operation after receiving a break, even if
the FER flag is cleared to 0, it will be set to 1 again.
13.10.2 Mark State and Break Detection (Asynchronous Mode Only)
When TE is 0, the TxD pin is used as an I/O port whose direction (input or output) and level are
determined by DR and DDR. This can be used to set the TxD pin to mark state (high level) or send
a break during serial data transmission. To maintain the communication line at mark state until TE
is set to 1, set both DDR and DR to 1. As TE is cleared to 0 at this point, the TxD pin becomes an
I/O port, and 1 is output from the TxD pin. To send a break during serial transmission, first set
PCR to 1 and PDR to 0, and then clear TE to 0. When TE is cleared to 0, the transmitter is
initialized regardless of the current transmission state, the TxD pin becomes an I/O port, and 0 is
output from the TxD pin.
13.10.3 Receive Error Flags and Transmit Operations (Clocked Synchronous Mode Only)
Transmission cannot be started when a receive error flag (ORER, PER, or FER) is set to 1, even if
the TDRE flag is cleared to 0. Be sure to clear the receive error flags to 0 before starting
transmission. Note also that receive error flags cannot be cleared to 0 even if the RE bit is cleared
to 0.
13.10.4 Restrictions on Use of DMAC or DTC
When an external clock source is used as the serial clock, the transmit clock should not be
input until at least 5 φ clock cycles after TDR is updated by the DMAC or the DTC.
Misoperation may occur if the transmit clock is input within 4 φ clocks after TDR is updated.
(figure 13.39)
When RDR is read by the DMAC or the DTC, be sure to set the activation source to the
relevant SCI reception end interrupt (RXI).
During data transfer, the TDRE and RDRF flags are automatically cleared by the DTC when
the DTC's DISEL bit is cleared to 0 and the transfer counter value is not 0. Consequently, it is
necessary to use the CPU to clear the TDRE and RDRF flags if DISEL is set to 1 or if the
transfer counter value is 0.