I've been experiencing a strange issue where my adc interrupt stops responding after a random amount of time and updating values no longer happens until I remove power and restart the mcu.
Things I've tried include..
1. Reading the interrupt code where some exception might occur but looks ok.
2. I used atomic_block in the main loop that displays the variables that the interrupt updates.
3. I declared all the variable as static volatile when shared between the main loop and the adc interrupt.
I get good results but the avcc aref and gnd pins are unconnected. I noticed some talk about connecting the avcc to vcc and aref to gnd with a capacitor between the 2 and then connecting gnd to ground.
Is this a major issue in using the adc?
I'm using an atmega32. The adc reference is set to avcc with external capacitor on aref pins
Things I've tried include..
1. Reading the interrupt code where some exception might occur but looks ok.
2. I used atomic_block in the main loop that displays the variables that the interrupt updates.
3. I declared all the variable as static volatile when shared between the main loop and the adc interrupt.
I get good results but the avcc aref and gnd pins are unconnected. I noticed some talk about connecting the avcc to vcc and aref to gnd with a capacitor between the 2 and then connecting gnd to ground.
Is this a major issue in using the adc?
I'm using an atmega32. The adc reference is set to avcc with external capacitor on aref pins
Last edited: