Wouter van Ooijen explained that the following code will prevent main() from terminating: void main( ){ for(;;){ // your code here } } William Chops Westfield explained another method that also works: main() { while (1) { /* * lots of code */ } } What is the difference between the two? Any advantages of one method over the other? -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist