- This topic has 1 reply, 2 voices, and was last updated 7 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › how to display timer values that is TH0 and TL0 on 16*2 LCD using 89s51
i want to display timer 0 values that is TH0 and TL0 on LCD but i am facing many problems below is the programe to initialize , to write , read for LCd display at its end there is written “data1:” below which i write that converts hex to ASCII code but its not working , if any body know how to display then do let me know
i will saved the TH0 in R2 and TL0 in R1 register change the below programe assuming that R2=TH0, R1=TL0
Hi there
Remember, LCDs need character values, so firstly convert this ASCII form into a character string and then pass this string to the LCD dislpay function. You can use sprintf() to convert your integer ASCII value to a character string.
This might help