Ye, I though about it,
But I use the button as "Rising Edge" so when the button is pressed there is no interrupt yet.
Ye, I though about it,
But I use the button as "Rising Edge" so when the button is pressed there is no interrupt yet.
I didn't say anything about the button causing the interrupt did I?
If you re-read my post, you'll see that I said that a timer causes an interrupt and the button input is read during that interrupt. Therefore, it doesn't matter if your button pulls a line high or low, or what, as long as you are able to read the state of that pin during the interrupt.
Just a question Menta, why did you set the ports as analogue if you are using them for a switch???
Bookmarks