Hi
My problem is tat when I debug this program
Everything works fine step by step until I come to the instruction JNB TF0,$ and the program stays there and doesnt move to the next instruction
My problem is tat when I debug this program
Everything works fine step by step until I come to the instruction JNB TF0,$ and the program stays there and doesnt move to the next instruction
Code:
main:
clr tf0
clr tr0
mov p4,#11110000b
mov p2,#1
mov P3,#6H
lcall delay
ljmp main
DELAY:
MOV TH0,#0ffh
MOV TL0,#0feh
MOV TMOD,#1
SETB TR0
JNB TF0,$
clr tf0
clr tr0
ret
end