> I'm seeing slightly different numbers. > Yesterday I put two lines of code in my C program. > Line 1 was IOSET0 = xxxx to set an IO pin. > Line 2 wss IOCLR0 = xxxx to clear the same pin., > This compiled to a total of 8 lines of assemble code using IAR. > When executed, the IO pin stayed high for 2 uS with a 24MHz clock. > This implies the 8 instruction took over 48 clock ticks. I was in > the THUMB mode, and I'll try it again in the ARM mode. > John What you should do is inserting instructions BETWEEN these lines and see the timing DIFFERENCE, then divide that by the number of (assembly) instructions. That way you avoid measuring the delay that is incurred by the slow I/O bus timing. Regards, Arie de Muynck
Message
Re: [lpc2000] Re: lpc2138 - how many osc clock x instruction?
2005-03-19 by Arie de Muynck