III PERIPHERAL BLOCK: INPUT/OUTPUT PORTS
B-III-10-24
EPSON
S1C33T01 FUNCTION PART
SPPKEX1–SPPKEX0: FPK1 to FPK0 interrupt input port selection (D[1:0]) / Key input interrupt select register
(0x40309)
SPPK11–SPPK10:
FPK1 interrupt input port selection (D[3:2]) / Key input interrupt select register (0x402CA)
SPPK01–SPPK00:
FPK0 interrupt input port selection (D[1:0]) / Key input interrupt select register (0x402CA)
Select an input-pin group for key interrupt generation.
Table 10.12
Selecting Pins for Key Input Interrupts
Interrupt
SPPKEX=0 settings
SPPKEX=1
system
11
10
01
00
FPK1
P2[7:4]
P0[7:4]
K6[7:4]
K6[3:0]
P7[7:4]
FPK0
P2[4:0]
P0[4:0]
K6[4:0]
K5[4:0]
P7[4:0]
At cold start, SPPK is set to "00". At hot start, SPPK retains its state from prior to the initial reset.
SCPK13–SCPK10: FPK1 input comparison (D[3:0]) / FPK1 input comparison register (0x402CD)
SCPK04–SCPK00: FPK0 input comparison (D[4:0]) / FPK0 input comparison register (0x402CC)
Sets the conditions for key-input interrupt generation (timing of interrupt generation).
Write "1": Generated at falling edge
Write "0": Generated at rising edge
Read: Valid
SCPK0[4:0] is compared with the input state of five bits of the FPK0 input ports, and SCPK1[3:0] is compared with
the input state of four bits of the FPK1 input ports, and when a change in states from a matched to an unmatched state
occurs in either, an interrupt is generated (except for the inputs disabled from interrupt by the SMPK register).
At cold start, SCPK is set to "0" (rising edge). At hot start, SCPK retains its state from prior to the initial reset.
SMPK13–SMPK10: FPK1 input mask (D[3:0]) / FPK1 input mask register (0x402CF)
SMPK04–SMPK00: FPK0 input mask (D[4:0]) / FPK0 input mask register (0x402CE)
Sets conditions for key-input interrupt generation (interrupt enabled/disabled).
Write "1": Interrupt enabled
Write "0": Interrupt disabled
Read: Valid
SMPK is an input mask register for each key-input interrupt system. Interrupts for bits set to "1" are enabled, and
interrupts for bits set to "0" are disabled. A change in the state of an input pin that is disabled from interrupt does not
affect interrupt generation.
At cold start, SMPK is set to "0" (interrupt disabled). At hot start, SMPK retains its state from prior to the initial
reset.