Remc Interrupts - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

21 REMOTE CONTROLLER (REMC)

21.6 REMC Interrupts

The REMC module includes functions to generate the following three different interrupt types.
• Underflow interrupt
• Rising edge interrupt
• Falling edge interrupt
The REMC module outputs one interrupt signal shared by the three interrupt factors above to the interrupt control-
ler (ITC). To identify the interrupt factor that occurred, inspect the interrupt flag within the REMC module.
Underflow interrupt
Generated when the data length counter has counted down to 0, this interrupt request sets the interrupt flag RE-
MUIF (D0/REMC_IFLG register) inside the REMC to 1.
When data is being transmitted, the underflow interrupt indicates that the specified data length has been trans-
mitted. When receiving data, the underflow interrupt indicates that data has been received or that a receive error
has occurred.
∗ REMUIF: Underflow Interrupt Flag in the REMC Interrupt Flag (REMC_IFLG) Register (D0/0x5347)
To use this interrupt, set REMUIE (D0/REMC_IMSK register) to 1. If REMUIE is set to 0 (default), REMUIF
will not be set to 1, and the interrupt request attributable to this factor will not be sent to the ITC.
∗ REMUIE: Underflow Interrupt Enable Bit in the REMC Interrupt Mask (REMC_IMSK) Register (D0/0x5346)
When REMUIF is set to 1, REMC outputs an interrupt request signal to the ITC. This interrupt request sets the
REMC interrupt flag to 1 within the ITC, and generates an interrupt if the ITC and S1C17 core interrupt condi-
tions are met.
REMUIF should be inspected as part of the REMC interrupt processing routine to determine whether the
REMC interrupt is attributable to data length counter underflow.
The interrupt factor should be cleared as part of the interrupt processing routine by resetting both the ITC
REMC interrupt flag and REMC module REMUIF (i.e., setting both to 1).
Rising edge interrupt
Generated when the REMI pin input signal changes from Low to High, this interrupt request sets the interrupt
flag REMRIF (D1/REMC_IFLG register) to 1 within the REMC.
When data is being received, the data length counter can be operated between this interrupt and a falling edge
interrupt to calculate the received data pulse width from that count value.
∗ REMRIF: Rising Edge Interrupt Flag in the REMC Interrupt Flag (REMC_IFLG) Register (D1/0x5347)
To use this interrupt, set REMRIE (D1/REMC_IMSK register) to 1. If REMRIE is set to 0 (default), REMRIF
is not set to 1 and the interrupt request for this factor is not sent to the ITC.
∗ REMRIE: Rising Edge Interrupt Enable Bit in the REMC Interrupt Mask (REMC_IMSK) Register (D1/0x5346)
When REMRIF is set to 1, REMC outputs an interrupt request to the ITC. This interrupt request signal sets the
REMC interrupt flag to 1 within the ITC, generating an interrupt if the ITC and S1C17 core interrupt conditions
are met.
REMRIF should be inspected as part of the REMC interrupt processing routine to determine whether the
REMC interrupt is attributable to input signal rising edge.
The interrupt factor should be cleared as part of the interrupt processing routine by resetting both the ITC
REMC interrupt flag and REMC module REMRIF (i.e., setting both to 1).
276
EPSON
S1C17001 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents