I guess I could, but personally my main() function never exits. After=20 all my program structure always looks like: //init code here while (1) { // main loop } -forrest On 12/14/2011 2:31 AM, alan.b.pearce@stfc.ac.uk wrote: >> So the answer is for CCS, it calls SLEEP, with nothing after it.... >> Which seems kinda dangerous to me since there is a chance that it could >> wake from SLEEP. This has been verified with a PIC18 and a PIC16 tar= get. >> >> Personally I'd much rather see a BRA 0x000F after that SLEEP call.... > Well, I guess you could always modify the start-up code to do so ... > > > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .