I really like Darrel's idea...at least with everything off, you know that you have to turn whatever you need on! (whereas at the minute even the stuff you want to turn on, might conflict with something else that's already turned on!)
Over time (& with starting to get a grip of this stuff), I find myself turning most stuff off at the top of my program anyway.
Would it be quick (or even possible) to do a 'switch off everything' header?



Like Charles, I tend to start off in shotgun mode and try setting all the registers. I see now that I have to think of the PIC as a blank slate (except for the comparators).


Bookmarks