OK let's see if i understand your requirement.
- When ONLY PORTB.5 = 1 this should go to main
- if PORTB.5 = 1 and PORTB.7 = 1, this should write to the memory and after go to main.
but you lost me with the pause 100... i may think you want to perform another operation if PORTB.1 have been hold more than 100 mSec... but not sure.
Bookmarks