Martin Guy wrote:
> You'll find what you need in the ARM920T Technical Reference
> Manual, section 12: "Instruction cycle summary".
Thanks for the pointer, Martin. The ARM being a RISC based chip meant that the
instruction set summary and timings is a little different than I'm used to
seeing.
A delay routine uses sub and bne. I didn't find a specific reference to either
instruction in the manual. I took a guess that subs takes 1 cycle and bne
takes 2 when the branch is taken and 1 when not.
Using the above assumptions, I set up several #defines for use in my LCD
output routines to calculate all the delays from a master #define which
specifies the CPU clock rate in MHz.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|