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 / plz tell me how to use 16 bit timer value

plz tell me how to use 16 bit timer value

|

Microcontroller › 8051 › plz tell me how to use 16 bit timer value

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 11 months ago by ZOBI.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 26, 2011 at 12:37 pm #1225
    ZOBI
    Participant

    i want to compare 16 bit timer value but i cant i want to save it in register but all the register in 89C51 are 8 bit an the timer 0 value is set to 16 bit MODE plz give me any solution

    July 27, 2011 at 5:28 am #6523
    dagakshay
    Participant

    hi zobi,

    use DPTR register of 8051..

    or take an unsigned int what would be a 16 bit variable;

    eg:

     

    unsigned int i=0x1234;

    P1=i;

    P2=i>>8;

     

    The output for P1 will be 0x34 and for P2=0x12;

     

    i tried the above example you can use according to your program

    July 27, 2011 at 11:19 am #6533
    ZOBI
    Participant

    i have tried to use DPTr but it is not possible DPTR can not be used for data storage or for saving any value

     

    and the e.g. you have given is so difrrent , i cant understand what does it mean is it in ASSEMBLY or C LANGUAGE?

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

RSS Recent Posts

  • Fun with AI and swordfish basic June 22, 2025
  • Microinverters and storeage batteries? June 22, 2025
  • FFC connector white June 22, 2025
  • Is AI making embedded software developers more productive? June 22, 2025
  • Can I make two inputs from one?? June 22, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media 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 WTWH Media
Privacy Policy | Advertising | About Us

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