EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / how to display timer values that is TH0 and TL0 on 16*2 LCD using 89s51

how to display timer values that is TH0 and TL0 on 16*2 LCD using 89s51

|

Microcontroller › 8051 › how to display timer values that is TH0 and TL0 on 16*2 LCD using 89s51

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by GANEEV SINGH.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 24, 2011 at 3:43 pm #1282
    ZOBI
    Participant

    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

    December 12, 2016 at 5:41 am #14267
    GANEEV SINGH
    Participant

    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 :)

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS feed: Recent Posts Recent Posts

  • Will this solenoid actuator work as intended? September 13, 2026
  • NE602/SA602 Bias and Buffer circuit September 13, 2026
  • Rotary encoder with push function September 12, 2026
  • How much does generator frequency stability matter for sensitive electrical equipment? September 12, 2026
  • differential line loss question September 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy | Advertising

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise