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.