need help in deciding the input circuitry of micro to genrate pwm at the o/p of micro

Discussion in 'General Electronics Chat' started by Dimpi, Jan 15, 2014.

  1. Dimpi

    Thread Starter Member

    Sep 6, 2013
    96
    0
    Helo all,

    For generating a pwm output at the output of microcontroller,what should be the input circuit to be fed at the input(ADC) of microcontroller..??

    if I am using OP-AMP as an input for generating PWM output then how the specifications of op-amp to be decided???
    it may be a simple question but any help would be highly appreciated

    thanks in advance!!!!!!!!!!!
     
  2. crutschow

    Expert

    Mar 14, 2008
    13,016
    3,235
    How do you want to control the PWM duty-cycle?
     
  3. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    Here is a similar function with yours, that is built with pic.
     
  4. Dimpi

    Thread Starter Member

    Sep 6, 2013
    96
    0
    pwm duty cycle wil be via software..

    i want to know about the hardware configuration at the input of micro so that pwm output is used to drive LEDs via led driver..please guide..
     
  5. MagicMatt

    Member

    Sep 30, 2013
    117
    14
    Are you sure you're not confusing your input and your output?

    You can have anything you want going into the microcontroller. You could use a pot, and simply read the voltage via the ADC, if that's what you're trying to do. The output is independent, and as you say, controlled via software.

    I'm not sure what you're doing with the Op-Amp, but a lot of microcontrollers have PWM circuitry built in, so you can probably just configure it and use it that way.
     
Loading...