Olin Lathrop wrote: > Using a high level language, particularly in the ISR, is a bad idea > especially when you're not clear what is really going on. Many people > here, including me, always say to do your first few PIC projects in > assembler until you have a solid understanding of the machine and the > instruction set. Only then should you be allowed to use a high level > language. > (take a look at the generated instructions some time) I think the second advice can somewhat mellow out the first, rather harsh statement. I'd put it this way: don't use a HLL to the point where you don't understand the assembler code it generates. If there's something in the behavior that you don't understand, look at the generated assembler and make sure you understand it and it does (or at least seems to do) what you meant the HLL code to do. Treat the compiler as an assembler generator, and consider the generated assembler also, not only the written HLL code. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist