Instruction timing
Posted: Wed Oct 03, 2012 4:49 pm
Hi all,
I'm sure this probably been asked before and that somebody simple be able to point me in the right direction. What I'm after is some information relating to how long various Flowcode commands take to execute. For example in a recent thread the following statement was made:
"other members please correct me if im wrong, at 32 Mhz clock it takes 1 microsecond to turn a output on and off, at 4Mhz it takes 8 microseconds thats straight time without any delays"
Why does this take so long. How many instruction cycles are utilised in such a simple operation?
I understand that the answer is obviously complicated by issues including MIPS capability of chosen device and the clock.
The reason that I'm asking these questions is that I'm trying to do some fairly fast work (4uS) with a PIC16F88, and having problems whereby the timings end up quite a bit longer than I'm requesting. Am I simply asking too much of the 16F88 to switch an output at intervals of 4uS?? If so, what alternative device would you recommend. I only need simple capability such as the 88, but operating quickly.
Thanks in advance,
Dick Miller
I'm sure this probably been asked before and that somebody simple be able to point me in the right direction. What I'm after is some information relating to how long various Flowcode commands take to execute. For example in a recent thread the following statement was made:
"other members please correct me if im wrong, at 32 Mhz clock it takes 1 microsecond to turn a output on and off, at 4Mhz it takes 8 microseconds thats straight time without any delays"
Why does this take so long. How many instruction cycles are utilised in such a simple operation?
I understand that the answer is obviously complicated by issues including MIPS capability of chosen device and the clock.
The reason that I'm asking these questions is that I'm trying to do some fairly fast work (4uS) with a PIC16F88, and having problems whereby the timings end up quite a bit longer than I'm requesting. Am I simply asking too much of the 16F88 to switch an output at intervals of 4uS?? If so, what alternative device would you recommend. I only need simple capability such as the 88, but operating quickly.
Thanks in advance,
Dick Miller