My suggestion, use the interrupt on PORTB change. Have a look to the datasheet.
Once you jump to the interrupt routine, check the state of your push-buttons and do the according stuff or set some specific flags and do your stuff in the MAINLOOP.
My suggestion, use the interrupt on PORTB change. Have a look to the datasheet.
Once you jump to the interrupt routine, check the state of your push-buttons and do the according stuff or set some specific flags and do your stuff in the MAINLOOP.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks