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 / PWM FOR 8051 BY FRESHLIFE

PWM FOR 8051 BY FRESHLIFE

|

Microcontroller › 8051 › PWM FOR 8051 BY FRESHLIFE

  • This topic has 3 replies, 3 voices, and was last updated 13 years, 5 months ago by László Nagy.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 13, 2011 at 5:43 am #1141
    query
    Participant

    please, i need pwm with 8051

    November 9, 2011 at 10:16 am #6821
    sourabh
    Participant

    Sir, for implementing pwm you have to use timers. Use them with a bit of logic and you will have your pwm.

    November 9, 2011 at 10:19 am #6822
    sourabh
    Participant

    void pwm();

     

    void main()

    {

       led=1;

       pwm();

      led=0;

      pwm();

     

    }

     

    void pwm()

    {

      TMOD=0x01;

      TH1=0x67;    //set the value of the delay

      TL1=0xff;

      TR1=1;

      while(TF1==0);

      TR1=0;

    }

    January 22, 2012 at 9:05 am #7068
    László Nagy
    Participant

    Hello,

     

    What do you think about the next link?

    http://www.engineersgarage.com/forums/8051/pwm-what-servos-need-at89c51rd2

     

    BR

    CST

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

RSS Recent Posts

  • Can I make two inputs from one?? July 9, 2025
  • The Analog Gods Hate Me July 9, 2025
  • How to make string LEDs? July 9, 2025
  • Fixing board, Easy question HEX SCHMITT July 9, 2025
  • It's Amazing What A Buck And A Quarter.... July 8, 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