Quote Originally Posted by mikey11 View Post
I'm curious if there are any events during startup which could influence my code to jump past the first loop that is waiting for the buttonpress.
Hi Mikey11,
The buttonpress . . . does it go high or low when pressed? What is its power off status? Any chance your PIC is seeing a buttonpress condition there ? Can you accept a delay at startup before initialising your TRIS registers ?