I'm using an arduino and the value in the analog pin needs to be monitored constantly at all points in the program . I’m aware of using a interrupt pin but it will only work when a pin goes high or low which is not sufficient.
The best method I could think was use a timer and fire it in a few milliseconds and monitor the value in the ISR. Is there a better method for achieving this ? Like detect a change in the analog pin and then the program goes to the ISR?
Thanks for any help.
Ranking | Name | Answers |
---|---|---|
1 | PCBWay Team | 6 |
2 | sisma | 1 |
3 | Tormy Van Cool | 1 |
4 | Julian Phillips | 1 |