Kev Howard wrote: > Should I put the pic into sleep after bcf gpio,2? or will the pic > stop until reset? The PIC stops when you tell it to (by a SLEEP). Un-programmed locations execute a code which does nothing in particular, and the PC loops around to the start, so if you simply stop placing instructions at the end of your code it goes right on and restarts the whole program. And again... And again... And again... And again... Unsuspecting programmers writing programs they think are looping often get tricked by the thing looping, but not doing *quite* what they expected. > should I fill any unused locations? if so how? No. If you tell it to SLEEP, it does, and what follows has no effect. -- Cheers, Paul B.