PIC Delay calculator

Status
Not open for further replies.
GOTO $+2 is a shortcut and can trip you up when you switch from 16F to 18F PICs.

The $ is the current address and the +2 adds two to the current address and jumps there. It's a popular skip instruction.
 
goto $+2 jumps forward 2 instructions;
$ = program counter (where we are now)
$+2 = program counter+2
 
ic.
but, i dun know how to do the calculation for this delay.
no matter how i count, i still cannot get 0.5 sec.
please teach me how to count it, in order i can create my own delay in the future.
thanks for advance.
 
Great Delay Calculator

I've created some software that has a delay calcultor and cycle calculator. you can get it free from picokit.com

**broken link removed**

The Software is called PicoFlow LT and has a number of features.
If you can think of other tools I could include in this software then please let me know.

Thanks,
Phil
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…