12 i/O PORTS
12-4
Seiko epson Corporation
S1C63003/004/008/016 TeChniCal Manual
(Rev. 1.1)
Data bus
Address
Address
Address
Address
Interrupt polarity select
register (PCP00)
Noise
rejector
MUX
Interrupt select
register (SIP00)
Interrupt factor
flag (IK00)
Address
Interrupt mask
register (EIK00)
Address
Noise reject select
register (NRSP[1:0])
P00
P01
P02
P03
Sleep
cancellation
Interrupt
request
Address
Address
Address
Address
Interrupt polarity select
register (PCP10)
Noise
rejector
MUX
Interrupt select
register (SIP10)
Interrupt factor
flag (IK10)
Address
Interrupt mask
register (EIK10)
Address
Noise reject select
register (NRSP1[1:0])
P10
P11
P12
P13
(S1C63003/004/008/016)
(S1C63004/008/016)
Sleep
cancellation
Interrupt
request
6.1 Key input interrupt circuit configuration
Figure 12.
The interrupt select registers (SIP0[3:0], SIP1[3:0]) and interrupt polarity select registers (PCP0[3:0], PCP1[3:0]) are
individually provided for the I/O ports P00–P03 and P10–P13.
The interrupt select registers (SIPxx) select the ports to be used for generating interrupts or canceling SLEEP mode.
Writing "1" to an interrupt select register incorporates that port into the key input interrupt generation conditions.
Changing the port where the interrupt select register has been set to "0" does not affect the generation of the inter-
rupt.
The key input interrupt timing can be selected using the interrupt polarity select registers (PCPxx) so that an interrupt
will be generated at the rising edge or falling edge of the input.
By setting these two conditions, an interrupt request signal and a SLEEP cancellation signal are generated at the rising
or falling edge (selected by PCPxx) of the signal input to the port (selected by SIPxx).
When a key input interrupt factor occurs, the interrupt factor flag (IK00–IK03, IK10–IK13) is set to "1." At the
same time, an interrupt request is generated to the CPU if the corresponding interrupt mask register (EIK00–EIK03,
EIK10–EIK13) is set to "1."