PICBasic Pro Question !?

Status
Not open for further replies.
Hi metal,

"GOTO $+1" is asm directive type instruction which mean jump to next instruction. As $ means current program counter of the Assembler (it is psuedo type used to track generation of object code in all most all assembler). Since it is for PICmicro, in this case, it will exactly generate 2 cycles delay.

Regards,
 

Hello micropar

Thanks for replying, that seems convincing, cause goto, and branch instructions consume two cycles

Any way, how is the 40 KHz is generated.

Thanks in advance
 

Simple:
1/25microseconds = 40khz
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…