AnsweredAssumed Answered

ADE7880 IRQ handling problem.

Question asked by AnalogFran on Nov 26, 2012
Latest reply on Nov 27, 2012 by AnalogFran

Hello everyone!

 

after fixing my initial problems with the test measurement with ADE7880, I started programming the calibration routines.

 

For IGAIN and VGAIN, I start setting one at a time, the zero crossing interrupts for the voltage and the current channels.

When I set ZXVA first:

I pass to MASK1=512d=1000000000b.

I have attached the IRQ1 (and the IRQ0) pin with a 10K pull-up to an external interrupt of my MCU. I do capture the interrupts right, but when I get the STATUS1 value for taking the decision of what to do, the status gives me always this value:

62455303d=11101110001111111000000111b

As you can see, a lot of interrupts are turned on...

Even with that, I write to STATUS1 the same value, to reset it, and I get:

28864512d=1101110000111000000000000b

Te ZXIx interrupts are ALWAYS on, for example. That cannot be possible because MASK1 is 512d.

What do you think? Is there another way to turn on that unwanted interrupts without setting them in MASK1?

 

Best regards,

 

Fran M.

Outcomes