AnsweredAssumed Answered

ADuCM320 interrupt status

Question asked by tak on Feb 22, 2016
Latest reply on Mar 17, 2016 by tak

Hello All,

 

MY customer has a question for ADuCM320 interrupt status.

Their question is that Interrupt Status is the “latch” operation or Not. Could you let me know?

 

--Background--

<Before>

Initialize the VDAC, then the comparator initialize in the sample code CmpCfg (CmpLib.c)

CmpCfg (AFECOMP_INNEG_DAC7, AFECOMP_SPEED_SPEED1, AFECOMP_HYS_EN)

After that,

pADI_LV_INT-> INTSEL | = INTSEL_SEL_ACOMP_0_EN

NVIC_EnableIRQ (LVD0_IRQn)

 

At above case, the comparator interrupt did not work as expected.

Specifically, there are interrupts either high or low at the comparator input voltage.

Therefore, they did not find out whether a falling edge or an rising edge.

 

<After>

Before connecting to the interrupt controller, by doing “INTCLR” and they got a interrupt as their expecting.

pADI_LV_INT-> INTCLR | = INTCLR_CLR_ACOMP

pADI_LV_INT-> INTSEL | = INTSEL_SEL_ACOMP_0_EN

NVIC_EnableIRQ (LVD0_IRQn)

 

<Customer thought>

The issue is in the process of the initialization, since the interrupt condition INTSTA stood in incomplete timing, therefore it seems like the interrupt was occurred, they thought.

They wants to make sure that interrupt status is “latch”. Is it correct understanding?

 

Best Regards,

Outcomes