Programming timer0 in PIC 16f628

If you trace the path of execution you will see that the portion I highlighted (plus the return instruction) never gets executed.

Mike.
 
i got it ............. thanks a heaven.......

in another part of the coursework i am required to use delay functions to generate delay of 1sec, 750ms, 500ms and 250ms.

can you check that the code i wrote for the delay function is correct??

 
Your theory is correct as to how you would generate a delay but unfortunately the biggest number that W can hold is 255 and so movlw D'624944' would actually load W with 48. For seeing how longer delays are generated see .

One other thing, when posting code if you type
Code:
 before it and
after it then it will keep it's format.

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