Interrupt Sources From The Analog Die - Analog Devices ADuCM356 Reference Manual

Table of Contents

Advertisement

Reference Manual
SYSTEM EXCEPTIONS AND PERIPHERAL INTERRUPTS
their hardware priority (the lower the position number) determines
the order in which the processor activates them. For example, if
both Digital Die General-Purpose Timer 0 and Digital Die General-
Purpose Timer 1 are priority Level 1, Digital Die General-Purpose
Timer 0 has higher priority.
To enable an interrupt for any peripheral from IRQ0 to IRQ31, set
the appropriate bit in the Cortex ISER0 register. ISER0 is a 32-bit
register, and each bit corresponds to the first 32 entries in
For example, to enable the External Interrupt 0 interrupt source
in the NVIC, set ISER0, Bit 2 = 1. Similarly, to disable External
Interrupt 1, SYS_WAKE, set ICER0, Bit 2 = 1.
To enable an interrupt for any peripheral from IRQ32 to IRQ63, set
the appropriate bit in the Cortex ISER1 register. ISER1 is a 32-bit
register, and Bit 0 to Bit 31 in the ISER1 register correspond to
IRQ32 to IRQ63.
For example, to enable the General-Purpose Timer 2 interrupt
source in the NVIC, set ISER1, Bit 8 = 1. Similarly, to disable the
General-Purpose Timer 2 interrupt, set ICER1, Bit 8 = 1.
Alternatively, CMSIS provides a number of useful NVIC functions
in the core_cm3.h file. The NVIC_EnableIRQ (TMR2_EVT_IRQn)
function enables the General-Purpose Timer 2 interrupt. The
interrupt can be disabled by calling the NVIC_DisableIRQ
(TMR2_EVT_IRQn) function.
To set the priority of a peripheral interrupt, set the Cortex IPRx
registers appropriately or call the NVIC_SetPriority() function. For
example, NVIC_SetPriority (TMR2_EVT_IRQn, 2) configures the
General-Purpose Timer 2 interrupt with a priority level of 2.
Table 42. Analog Die Interrupts List
Exception Number
IRQx
64
IRQ48
Two steps are required to generate an interrupt request to the NVIC
on the digital die as follows:
1. Configure the corresponding peripheral to generate an interrupt
request to the NVIC. Refer to the interrupt enable register bit
column in
Table
42.
2. Configure the NVIC for that peripheral request. Call NVIC_Ena-
bleIRQ(IRQn).
The following example function shows how to select the ADC ready
(ADCRDY) interrupt source for the die to die interrupt source to the
NVIC:
analog.com
Table
Interrupt Enable Register
Interrupt Enable Register Bit
ADCINTIEN
ADCRDYIEN
DFTRDYIEN
SINC2RDYIEN
TEMPRDYIEN
ADCMINFAILIEN
ADCMAXFAILIEN
ADCDELTAFAILIEN
MEANIEN
Table 43
lists the registers to enable and disable relevant interrupts
and set the priority levels. The registers in
the CMSIS core_cm3.h file, which is provided with tools from third
party vendors.
INTERRUPT SOURCES FROM THE ANALOG
DIE
41.
Figure 5. Analog Die Interrupt Connections to Digital Die
The analog die peripherals provide different interrupt sources to
the NVIC. These sources can be selected via the standard internal
die to die interface. The analog die interrupts connect to NVIC
IRQ48 to IRQ57, as shown in
die interrupt sources (interrupt enable register bit and interrupt
status bit) for IRQ48, Exception Number 64, via the interrupt enable
register, ADCINTIEN.
Interrupt Status Register
ADCINTSTA
void AfeAdcInterruptSetup(void)
{
AfeAdcIntCfg(BITM_AFE_ADCINTIEN_ADCR►
DYIEN);
// Select ADCReady as interrupt
source
NVIC_Enable►
IRQ(AFE_ADC_IRQn);
ble AFE_ADC interrupt source in NVIC
}
void SIP0_IRQHandler()
{
uiIntSta = AfeAdcIntSta();
ADuCM356
Table 43
are defined in
Figure
5.
Table 42
lists all the analog
Interrupt Status Register Bit
ADCRDY
DFTRDY
SINC2RDY
TEMPRDY
ADCMINERR
ADCMAXERR
ADCDIFFERR
MEANRDY
// Ena►
Rev. A | 41 of 312

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADuCM356 and is the answer not in the manual?

Questions and answers

Table of Contents