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 / atmega 8 to produce pwm

atmega 8 to produce pwm

|

Microcontroller › AVR › atmega 8 to produce pwm

  • This topic has 3 replies, 4 voices, and was last updated 11 years, 2 months ago by AJISH ALFRED.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 13, 2014 at 7:50 pm #2864
    mahmoud
    Participant

    how to program atmega 8 to generate pwm with a frequency 100khz by subtracting ramp and  Vref and compare them to drive mosfet of dc-dc converter , where Vref is input for the atmega and the ramp is internally generated

    February 14, 2014 at 10:41 am #11026
    ankurmm
    Participant

    Hi, mahmoud 
    In Atmega8 you can get PWM output  by  programming TimerX (0,1,2) in Fast PWM mode, phase correct PWM mode and Phase and freq. corrrect mode. In ATmega8 datasheet sample code is given on TimerX. On Youtube seacrh humanHardDrive for video tutorial.  

    February 17, 2014 at 11:33 am #11044
    Ashutosh Bhatt
    Participant

    in ATmega controllers generating PWM using fast PWM method is easy. for setting frequency you have to divide clock frequency by desire factor. during this time period the ramp increases from min (0) to max (256).

     

    February 21, 2014 at 4:53 am #11072
    AJISH ALFRED
    Participant

    Hi Mahmoud,

    Please find this link

    http://www.engineersgarage.com/embedded/arduino/variable-frequency-sine-wave-generation-using-arduino

  • 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

  • LED circuit for 1/6 scale diorama May 12, 2025
  • Electronic board faulty?!? May 12, 2025
  • Is there a Power Bank that can also be charged with electricity? May 12, 2025
  • applying solder paste from a jar May 11, 2025
  • Did a Buyer Kill My Amp? May 11, 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