Hi Ayush8051 has two 16 bit
February 21, 2017 at 1:06 pm
#14472
Participant
Hi Ayush
8051 has two 16 bit timers i.e. TH/L0 and TH/L1, here H/L corresponds to high/low byte of respective timers. Displaying their values on LCD is a not a difficult task, just make sure that they are transferred correclty; I mean they are 16 bit in length so you need to transfer them twice (one byte at a time). Also make sure that you first convert them into charachter type since LCDs need char input. You can make use of sprintf() of stdio.h file for the same.
I am sharing with you link of a project which involves how to interface LCD with 8051:
"engineersgarage.com/microcontroller/8051projects/display-text-LCD-AT89C51-circuit"
Hope this helps