English
Language : 

HD64F2638F20J Datasheet, PDF (553/1512 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2600 Series
H8S/2639, H8S/2638, H8S/2636,
H8S/2630, H8S/2635 Group
Section 13 Serial Communication Interface (SCI)
13.4 SCI Interrupts
The SCI has four interrupt sources: the transmit-end interrupt (TEI) request, receive-error interrupt
(ERI) request, receive-data-full interrupt (RXI) request, and transmit-data-empty interrupt (TXI)
request. Table 13-13 shows the interrupt sources and their relative priorities. Individual interrupt
sources can be enabled or disabled with the TIE, RIE, and TEIE bits in the SCR. Each kind of
interrupt request is sent to the interrupt controller independently.
When the TDRE flag in SSR is set to 1, a TXI interrupt request is generated. When the TEND flag
in SSR is set to 1, a TEI interrupt request is generated. A TXI interrupt can activate the DTC to
perform data transfer. The TDRE flag is cleared to 0 automatically when data transfer is
performed by the DTC. The DTC cannot be activated by a TEI interrupt request.
When the RDRF flag in SSR is set to 1, an RXI interrupt request is generated. When the ORER,
PER, or FER flag in SSR is set to 1, an ERI interrupt request is generated. An RXI interrupt can
activate the DTC to perform data transfer. The RDRF flag is cleared to 0 automatically when data
transfer is performed by the DTC. The DTC cannot be activated by an ERI interrupt request.
Table 13-12 SCI Interrupt Sources
Interrupt
Channel Source Description
DTC
Activation
Priority*
0
ERI
Interrupt due to receive error (ORER, FER, or PER) Not possible High
RXI
Interrupt due to receive data full state (RDRF)
Possible
TXI
Interrupt due to transmit data empty state (TDRE) Possible
TEI
Interrupt due to transmission end (TEND)
Not possible
1
ERI
Interrupt due to receive error (ORER, FER, or PER) Not possible
RXI
Interrupt due to receive data full state (RDRF)
Possible
TXI
Interrupt due to transmit data empty state (TDRE) Possible
TEI
Interrupt due to transmission end (TEND)
Not possible
2
ERI
Interrupt due to receive error (ORER, FER, or PER) Not possible
RXI
Interrupt due to receive data full state (RDRF)
Possible
TXI
Interrupt due to transmit data empty state (TDRE) Possible
TEI
Interrupt due to transmission end (TEND)
Not possible Low
Note: * This table shows the initial state immediately after a reset. Relative priorities among
channels can be changed by means of the interrupt controller.
A TEI interrupt is requested when the TEND flag is set to 1 while the TEIE bit is set to 1. The
TEND flag is cleared at the same time as the TDRE flag. Consequently, if a TEI interrupt and a
REJ09B0103-0800 Rev. 8.00
May 28, 2010
Page 503 of 1458