PICdude wrote: > I'm finally going to start really using a higher (than 8-bit) PIC and > also looking into Atmels and C instead of assembly (for the PIC too). > Since there will be optimizations, how would timing-specific code > (such as bit-banging) be done? Are these pieces put into inline > assembly, or is there a way to use C code with known timing? High level languages have no guarantee exactly what instructions will be used and therefore what the timing will be. Often you can guess and get it right, but that's bad programming. If you need instruction-level known timing, write it in assembler. That ca= n be either inline assembly or subroutines in a seperate assembly module. I really don't understand the reluctance to use assembly when required. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .