21 REMOTE CONTROLLER (REMC)
276
EPSON
S1C17001 TECHNICAL MANUAL
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).
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...