Programming timer0 in PIC 16f628

Status
Not open for further replies.
thanks pommie......

but 1 thing that i didnt understand is the "this is never executed" bit..... what is that supposed to mean??
 
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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…