Adam Woodworth wrote: > For example, the following simple program doesn't do anything when > loaded onto my PIC and put into a circuit with an LED attached to pin > 1 of PORTB. > > #include > __CONFIG(WDTEN & XT & UNPROTECT & PWRTEN); > void main(void) > { > TRISB = 0; > PORTB = 255; > } I think this is a fairly common hurdle for people to overcome when first learning C. Your two lines of code will get executed and then the processor will wander off into never never land because you haven't told it what to do next. You could add the following:- while(1) ; The above is a never ending loop. Or you could re-structure your program so all of function main gets repeated: void main(void){ while(1){ TRISB = 0; PORTB = 255; } } Hope this helps somewhat. -- Brent Brown, Electronic Design Solutions 16 English Street, Hamilton, New Zealand Ph/fax: +64 7 849 0069 Mobile/txt: 025 334 069 eMail: brent.brown@clear.net.nz _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist