We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Can any one help me plz This is the code for some delay on p1.0 pin
org 0000h mov tmod,#01h back: mov th0,#0f0h mov tl0,#0f0h setb tr0 cpl p1.0 here: jnb tf0,here clr tr0 clr tf0 jmp back end
My problem is value in TL is not incrementing properly .TL is displaying only even numbers . TF is setting when ever T0 reg is becoming 0000 and port bit is also working properly. TL value incrementing even TR0 falg is 0 again reloading with T0 value when TR0 is 1. And finally iam not getting the result when I loaded this code into controller.
all instructions are 2-cycle instructions. That is the reason whey TL is incremented in steps of 2.
And finally iam not getting the result when I loaded this code into controller.
Which result are you expecting. The program really does not make any sense.