PWM through ADC

Discussion in 'Embedded Systems and Microcontrollers' started by InfahOlic, Feb 9, 2014.

  1. InfahOlic

    Thread Starter New Member

    Feb 5, 2014
    1
    0
    I am new at AVR microcontroller,I want to vary PWm duty cycle through ADC which should be an potentiometer at I/p. I need a source code for atmega8 or 16 any of them which can full fil my requirment
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,377
    494
    ADC is analog to digital converter.

    Do you mean DAC? Digital to Analog Converter?

    Are you trying to receive PWM or send out PWM?
     
  3. MrChips

    Moderator

    Oct 2, 2009
    12,415
    3,354
    OP says that a potentiometer is connected to an ADC input.
    The setting of the pot 0-100% is to be used to determine the duty cycle of a PWM output.
     
  4. donpetru

    Active Member

    Nov 14, 2008
    186
    25
  5. Rydaholic

    New Member

    Feb 4, 2014
    15
    0
    I also need help in same topic kindly if you got this please send me some kind of source code for it which i can control pwm through potentiometer and also if u tells me how to vary the duty cycle automatically using feedback. I am designing a synchronous buck converter..!
     
  6. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    988

    Don't steal someone else's thread. That is very rude.


    All it takes is a little searching.

    http://www.mikroe.com/products/view/285/book-pic-microcontrollers-programming-in-c/


    Oh and YOU need to provide the source code. People are here to help not do your work for you.
     
Loading...