I have made these changes:
1 trisa is now %00000000
2 trisb is now %00111111
3 pir is now pirin this should reduse any confusition.
Would this be correct? I will later change armed from porta.4 to portb.6 to not have to use a pull up resister and reduse current draw to a min.
Bookmarks