Hi there,
I am trying to handle some ADC interrupts but i have a more general question. I will try to explain my use case and use it as an example for the bigger picture.
I am using an lpcxpresso 4367 mounted on a custom pcb.
I am using an analog PIR sensor so that i can catch different levels of motion and generate the appropriate interrupts as well.
So i used lpcopen periph adc example as a code base.
Inside adc example there is ADC0_IRQHandler function which is triggered every time a specific adc channel asserts some voltage.
I want to find out (but arm specifciation only says about level and edge sensitive interrupts) when an interrupt is triggered. When ADC0_IRQHandler in my example is called?
Can i change the sensitivity of the triggering of an interrupt?
Again, in my example when no motion is detected the pir sensor generates mV that i dont care about.
Can i somehow filter values that are too low and trigger interrupt under a given threshold?
How do in general nvic interrupt handlers work? Where is their threshold specified?
Thanks a lot in advance