Em 12/9/2010 12:18, PICdude escreveu: > I'm finally going to start really using a higher (than 8-bit) PIC and =20 > also looking into Atmels and C instead of assembly (for the PIC too). =20 > Since there will be optimizations, how would timing-specific code =20 > (such as bit-banging) be done? Are these pieces put into inline =20 > assembly, or is there a way to use C code with known timing? > > Cheers, > -Neil. Inline assembly is one option. Another would be to write the routines in an all-assembly module with the correct structure to be called from C. Don't forget that higher-end processors use caches, DMA, dynamic RAM and several other things that may interfere with the code execution speed. So their timing may be much less deterministic than a PIC. Best regards, Isaac __________________________________________________ Fale com seus amigos de gra=E7a com o novo Yahoo! Messenger=20 http://br.messenger.yahoo.com/=20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .