
Originally Posted by
keithdoxey
...
A 10mS pause is easy.... PAUSE 50
Because your PIC is running 5 times as fast as the compiler thinks it is, all delays will be a fifth of what it expects so the 50mS pause will become 10mS.
This is not valid for PAUSE command. It is for PULSOUT type of commands.

Originally Posted by
Blackhawk
I want a 10 microsecond pause not a 10 millisecond pause, that's the problem
With at least 10Mhz OSC, 10uS pause can be achieved using PAUSEUS command. Since you are using 20Mhz, it WOULD BE ok in your case by PAUSEUS 10 but you are not using PBP. So it won't be possible until you get PBP.
Therefore, you will need to use ASM routine to create a sensitive uS delay.
-------------------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks