
24 GENERAL PURPOSE I/O PORTS
222
EPSON
S1C38000 TECHNICAL MANUAL
bit 7
GPIO Port A Pin 7 Interrupt Mask
bit 6
GPIO Port A Pin 6 Interrupt Mask
bit 5
GPIO Port A Pin 5 Interrupt Mask
bit 4
GPIO Port A Pin 4 Interrupt Mask
bit 3
GPIO Port A Pin 3 Interrupt Mask
bit 2
GPIO Port A Pin 2 Interrupt Mask
bit 1
GPIO Port A Pin 1 Interrupt Mask
bit 0
GPIO Port A Pin 0 Interrupt Mask
These bits enable each interrupt. When these pins are configured as output, interrupts
are disabled (masked) and these bits have no hardware effect.
0
Interrupt disabled (masked)
1
Interrupt enabled
bit 7
GPIO Port A Pin 7 Interrupt Status/Clear
bit 6
GPIO Port A Pin 6 Interrupt Status/Clear
bit 5
GPIO Port A Pin 5 Interrupt Status/Clear
bit 4
GPIO Port A Pin 4 Interrupt Status/Clear
bit 3
GPIO Port A Pin 3 Interrupt Status/Clear
bit 2
GPIO Port A Pin 2 Interrupt Status/Clear
bit 1
GPIO Port A Pin 1 Interrupt Status/Clear
bit 0
GPIO Port A Pin 0 Interrupt Status/Clear
On reads, these bits represent the interrupt status for the corresponding general purpose
I/O pin. If the interrupt type for the pin is selected as edge trigger,
<Read>
0
No selected polarity edge event detected on the corresponding general purpose I/O
pin.
1
Selected polarity edge event detected on the corresponding general purpose I/O
pin.
For this interrupt type, once it is triggered, the status bit can only be cleared by writing a
1 to that bit.
If the interrupt type for the pin is selected as level trigger,
<Read>
0
The corresponding general purpose I/O pin is in selected polarity inactive state.
1
The corresponding general purpose I/O pin is in selected polarity active state.
For this interrupt type, these bits represent the real time status of each pins and cannot
be cleared until the pin returns to it’s inactive state.
GPIO Port A Interrupt Mask Register
GPIO[10h]
Default = 0000 0000h
Read/Write
n/a
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
n/a
GPIO
Port A
Pin 7 IRQ
Mask
GPIO
Port A
Pin 6 IRQ
Mask
GPIO
Port A
Pin 5 IRQ
Mask
GPIO
Port A
Pin 4 IRQ
Mask
GPIO
Port A
Pin 3 IRQ
Mask
GPIO
Port A
Pin 2 IRQ
Mask
GPIO
Port A
Pin 1 IRQ
Mask
GPIO
Port A
Pin 0 IRQ
Mask
15
14
13
12
11
10
9876543210
GPIO Port A Masked Interrupt Status/Clear Register
GPIO[14h]
Default = 0000 0000h
Read/Write
n/a
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
n/a
GPIO
Port A
Pin 7
Status/
Clear
GPIO
Port A
Pin 6
Status/
Clear
GPIO
Port A
Pin 5
Status/
Clear
GPIO
Port A
Pin 4
Status/
Clear
GPIO
Port A
Pin 3
Status/
Clear
GPIO
Port A
Pin 2
Status/
Clear
GPIO
Port A
Pin 1
Status/
Clear
GPIO
Port A
Pin 0
Status/
Clear
15
14
13
12
11
10
9876543210