
DS4830A User’s Guide
41
Note: Some of the DS4830A module and peripheral interrupts sources are shown in the Figure 5-1 interrupt
hierarchy diagram. See the corresponding sections of this user’s guide for more detailed information about all of the
possible interrupts.
5.1 – Servicing Interrupts
For the DS4830A to service an interrupt, interrupts must be enabled locally, modularly, and globally. The Interrupt
Global Enable (IGE) bit is located in the Interrupt Control (IC) register acts as a global interrupt mask. This bit
defaults to 0, and it must be set to 1 before any interrupt takes place.
The local interrupt-enable bit for a particular source is in one of the peripheral registers associated with that
peripheral module, or in a system register for any system interrupt source. Between the global and local enables are
intermediate per-module and system interrupt mask bits. These mask bits reside in the Interrupt Mask system
register. By implementing intermediate per-module masking capability in a single register, interrupt sources spanning
multiple modules can be selectively enabled/disabled in a single instruction. This promotes a simple, fast, and user-
definable interrupt prioritization scheme. The interrupt source-enable hierarchy is illustrated in Figure 5-1 as well as
Table 5-1.
Table 5-1: Interrupt Sources and Control Bits
INTERRUPT INTERRUPT FLAG LOCAL ENABLE BIT
INTERRUPT
IDENTIFICATI
INTERRUPT
IDENTIFICATION
BIT
MODULE
ENABLE
BIT
External Interrupt Pp.n
(here p = 0,1,2 and n = 0 to 7)
EIFp.IEn EIEp.EXn -
IIR.II0 IMR.IM0
External Interrupt Pp.n
(here p = 6 and n = 0 to 6)
EIFp.IEn EIEp.EXn MIIR1.Pp_n
IIR.II1 IMR.IM1
Supply Voltage Monitor Interrupt
I
2
C Master Start Interrupt
MIIR1.I2CM
I
2
C Master Transmit Complete
Interrupt
I2CST_M.I2CTXI I2CIE_M.I2CTXIE
I
2
C Master Receive Ready Interrupt
I
2
C Master Clock Stretch Interrupt
I
2
C Master Timeout Interrupt
I
2
C Master NACK Interrupt
I
2
C Master Receiver Overrun Interrupt
I
2
C Master Stop Interrupt
I
2
C Slave Start Interrupt
- IIR.II2 IMR.IM2
I
2
C Slave Transmit Complete Interrupt
I
2
C Slave Receive Ready Interrupt
I
2
C Slave Clock Stretch Interrupt
I
2
C Slave Timeout Interrupt
I
2
C Slave Address Match Interrupt
I
2
C Slave General Call Interrupt
I
2
C Slave Receiver Overrun Interrupt
I
2
C Slave Start Address Interrupt
I
2
C Slave Memory Address Interrupt
I
2
C Slave Page Threshold Interrupt
I
2
C Slave FIFO Threshold Interrupt
IIR.II3 IMR.IM3
Software Interrupts
- -
ADC Data Available Interrupt
MIIR4.ADC
IIR.II4 IMR.IM4
Internal Temperature Interrupt
Sample and Hold 0 Interrupt
Sample and Hold 1 Interrupt ADST1.SH1DAI SHCN.SHDAI1_EN
SPI Slave Transfer Complete
SPICF_S.ESPII
MIIR4.SPI_S
SPI Slave Write Collision
SPI Slave Receive Overrun
Comentarios a estos manuales