
24 GENERAL PURPOSE I/O PORTS
226
EPSON
S1C38000 TECHNICAL MANUAL
bit 7
GPIO Port B Pin 7 Interrupt Status/Clear
bit 6
GPIO Port B Pin 6 Interrupt Status/Clear
bit 5
GPIO Port B Pin 5 Interrupt Status/Clear
bit 4
GPIO Port B Pin 4 Interrupt Status/Clear
bit 3
GPIO Port B Pin 3 Interrupt Status/Clear
bit 2
GPIO Port B Pin 2 Interrupt Status/Clear
bit 1
GPIO Port B Pin 1 Interrupt Status/Clear
bit 0
GPIO Port B 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.
On writes, if the interrupt type for the pin is selected as edge trigger, these bits clear the
corresponding interrupt status register to zero.
<Write>
0
Corresponding interrupt status bit unchanged
1
Clear corresponding interrupt status bit to zero
If the interrupt type for the pin is selected as level trigger, writing to these bits will have
no effect.
These interrupts may be masked by the GPIO Port B Interrupt Mask Register,
GPIO[28h].
Note: After changing type or polarity of the interrupt, interrupt status should be cleared immediately to
prevent generating false interrupt during the transition.
GPIO Port B Masked Interrupt Status/Clear Register
GPIO[2Ch]
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 B
Pin 7 IRQ
Status/
Clear
GPIO
Port B
Pin 6 IRQ
Status/
Clear
GPIO
Port B
Pin 5 IRQ
Status/
Clear
GPIO
Port B
Pin 4 IRQ
Status/
Clear
GPIO
Port B
Pin 3 IRQ
Status/
Clear
GPIO
Port B
Pin 2 IRQ
Status/
Clear
GPIO
Port B
Pin 1 IRQ
Status/
Clear
GPIO
Port B
Pin 0 IRQ
Status/
Clear
15
14
13
12
11
10
9876543210