Electrix said:
Hi, I'm using a PIC 16F73 for a Temp. Controller.
The delay loop that provides a 12-microsecond timer for the LCD is:
T12us
goto $+1
goto $+1
goto $+1
goto $+1
nop
return
In this subroutine what does the 'goto $+1' mean?? I've checked the code throughly and the $ is not assigned to any address.
Plz help.
Ok, first, what is your oscilator frequency? This delay is making 13 empy cycles, therefore if your PIC runs @ 4Mhz, it gives you delay of 13us...
$ stands for actual Program Counter address, therefore Goto $+1 will just jump on the next line (and it will take two instruction cycles to do so). It is used to save space, beacuse Goto $+1 equals two NOP instructions.