Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Displaying the TH0, ThL0 value of at89s52 on 2x16 LCD

Status
Not open for further replies.

eehero

New Member
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
 
Do you want the display to be in the binary, octal, decimal, or hexadecimal number base.

Second question is can you tell the display to show ASCII characters or is this a graphics display where we have to figure out the blanking codes?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top