> -----Original Message----- > From: Lim KK [SMTP:mark_limkk@HOTMAIL.COM] > Sent: Tuesday, February 11, 2003 10:55 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: problem using mplab C18 --- delay problem > > But if there is nothing inside like: > > void main (void) { > TRISA = 0x00; > PORTA = 0xFF; > } > > then is'nt the processor idle after executing the PORTA = 0xFF; ? > No, why would you think that? The CPU will simply start executing whatever instructions happen to be in program memory after your main() function. Without an operating system to return to, an emmbeded application will almost always need to run in an infinite loop. Regards Mike -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads