68
CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
Interrupt Controller
5.3
Register Definitions
The following registers are associated with the Interrupt Controller and are listed in address order. The register descriptions
have an associated register table showing the bit structure for that register. The bits in the tables that are grayed out are
reserved bits and are not detailed in the register descriptions that follow. Reserved bits should always be written with a value
of '0'. For a complete table of Interrupt Controller registers, refer to the
“Summary Table of the Core Registers” on page 36
Depending on the CY8C28xxx device you have, only certain bits are accessible to be read or written. See
for the interrupt availability by subfamily.
5.3.1
INT_CLRx Registers
The Interrupt Clear Registers (INT_CLRx) are used to
enable the individual interrupt sources’ ability to clear posted
interrupts.
There are four interrupt clear registers (INT_CLR0,
INT_CLR1, INT_CLR2, and INT_CLR3) which may be
referred to in general as INT_CLRx.The INT_CLRx registers
are similar to the INT_MSKx registers in that they hold a bit
for each interrupt source. Functionally the INT_CLRx regis-
ters are similar to the INT_VC register, although their opera-
tion is completely independent. When an INT_CLRx register
is read, any bits that are set indicates an interrupt has been
posted for that hardware resource. Therefore, reading these
registers gives the user the ability to determine all posted
interrupts.
The Enable Software Interrupt (ENSWINT) bit in
INT_MSK3[7] determines the way an individual bit value
written to an INT_CLR0 register is interpreted. When
ENSWINT is cleared (the default state), writing 1's to an
INT_CLRx register has no effect. However, writing 0's to an
INT_CLRx register, when ENSWINT is cleared, will cause
the corresponding interrupt to clear. If the ENSWINT bit is
set, any 0's written to the INT_CLRx registers are ignored.
However, 1's written to an INT_CLRx register, while
ENSWINT is set, will cause an interrupt to post for the corre-
sponding interrupt.
Note
When using the INT_CLRx register to post an inter-
rupt, the hardware interrupt source, such as a digital clock,
must not have its interrupt output high. Therefore, it may be
difficult to use software interrupts with interrupt sources that
do not have enables such as VC3.
Software interrupts can aid in debugging interrupt service
routines by eliminating the need to create system level inter-
actions that are sometimes necessary to create a hardware-
only interrupt.
5.3.1.1
INT_CLR0 Register
Depending on the analog column configuration of your
PSoC device (see the table titled
), some bits may not be available in
the INT_CLR0 register.
Bit 7: VC3.
This bit allows posted VC3 interrupts to be
read, cleared, or set.
Bit 6: Sleep.
This bit allows posted sleep interrupts to be
read, cleared, or set.
Bit 5: GPIO.
This bit allows posted GPIO interrupts to be
read, cleared, or set.
Bit 4: Analog 3.
This bit allows posted analog column 3
interrupts to be read, cleared, or set.
Bit 3: Analog 2.
This bit allows posted analog column 2
interrupts to be read, cleared, or set.
Bit 2: Analog 1.
This bit allows posted analog column 1
interrupts to be read, cleared, or set.
Bit 1: Analog 0.
This bit allows posted analog column 0
interrupts to be read, cleared, or set.
Bit 0: V Monitor.
This bit allows posted V monitor interrupts
to be read, cleared, or set.
For additional information, refer to the
.
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
0,DAh
VC3
Sleep
GPIO
Analog 3
Analog 2
Analog 1
Analog 0
V Monitor
RW : 00
0,DBh
DCC13
DCC12
DBC11
DBC10
DCC03
DCC02
DBC01
DBC00
RW : 00
0,DCh
DCC23
DCC22
DBC21
DBC20
RW : 00
0,DDh
Analog 5
Analog 4
RTC
SARADC
I2C1
I2C0
RW : 00
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...