Hi all, i am going to use timer 0 of At89s52 as an event counter, after counting i have to read the timer value using the following code:
loop: mov a,th0
mov r6,tl0
cjne a,th0,loop
mov r7,a
finally i get 16 bit data in r6, r7.
how i can display the counting value in r6, r7 on a 2x16 LCD
loop: mov a,th0
mov r6,tl0
cjne a,th0,loop
mov r7,a
finally i get 16 bit data in r6, r7.
how i can display the counting value in r6, r7 on a 2x16 LCD