six PWM signals using pic..possible or not??

Discussion in 'Embedded Systems and Microcontrollers' started by ayu_ayfa, Mar 7, 2012.

  1. ayu_ayfa

    Thread Starter New Member

    Sep 26, 2011
    14
    0
    Hello guys,

    i am currently working on my project..i need to generate six pwm signals using pic..i am very desired to use pic18f4550 because i am not familiar with any other pic..but as we know this pic only can produce 2 pwm signals..so, is it possible if we generate six pwm signals using this pic?

    Any help from any of you is much appreciated..

    Thank you..=)
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
  3. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    763
    Take a look at the 18F4431. It is a step ahead of common micros in the 18F family because has an extra module for "power control".

    This not to say that it is the only one.
     
    Last edited: Mar 7, 2012
  4. ayu_ayfa

    Thread Starter New Member

    Sep 26, 2011
    14
    0
    Thank for the responses from all of you.But i've checked for pic18f4431.it just have two pwm channel.i didn't understand how could it possible to produce 6 pwm signals. Can you explain me more details please?
     
  5. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    763
    Quoting myself.

    Look again, harder.

    You could, instead of RTFM, just check the block diagram of that chip or, even simpler, look at the pinout diagram. The clues are there.
     
  6. John P

    AAC Fanatic!

    Oct 14, 2008
    1,634
    224
    It's pretty trivial to make a PIC, even a small one, run as many PWM channels as you have output pins to drive them. All you have to do is write code that counts up to a total (say 100) and decide whether a given setting for each channel has or hasn't been reached, and turn the output off at the right point. That's all PWM is.
     
    Eric007 likes this.
  7. ayu_ayfa

    Thread Starter New Member

    Sep 26, 2011
    14
    0
    atferrari,
    i got it!!..big thanks to you..i was mistaken view of another datasheet..hehe;)..any questions i will post again here..:D..my project deadline is almost soon!!aigooo~
     
Loading...