Interrupt execution method
hello again ![smiley :)](https://forum.arduino.cc/smileys/arduino/smiley.gif)
i using 328p read 2 sensor inputs connected interrupts. controller takes in 6000 pulses second, 6hz on both interrupts. interrupt triggers flag value, don't trigger same value, ex if sense1() , sense2() functions, don't change flag x together, it's x , y separately.
my question is, there times when both inputs fired together, or rendered high together.
do still run function, or kind of conflict arise since 2 interrupts fired ?
thanks![smiley :)](https://forum.arduino.cc/smileys/arduino/smiley.gif)
![smiley :)](https://forum.arduino.cc/smileys/arduino/smiley.gif)
i using 328p read 2 sensor inputs connected interrupts. controller takes in 6000 pulses second, 6hz on both interrupts. interrupt triggers flag value, don't trigger same value, ex if sense1() , sense2() functions, don't change flag x together, it's x , y separately.
my question is, there times when both inputs fired together, or rendered high together.
do still run function, or kind of conflict arise since 2 interrupts fired ?
thanks
![smiley :)](https://forum.arduino.cc/smileys/arduino/smiley.gif)
if 2 interrupts pending @ same time, mcu service 1 highest priority. when isr has completed, if other interrupt still pending (that is, reason interrupt hasn't gone away), service other one. both serviced.
Arduino Forum > Using Arduino > Microcontrollers > Interrupt execution method
arduino
Comments
Post a Comment