+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Advanced Member level 5
    Points: 31,975, Level: 43
    Achievements:
    7 years registered

    Join Date
    Sep 2008
    Location
    cambridge
    Posts
    6,671
    Helped
    484 / 484
    Points
    31,975
    Level
    43

    PIC16F1947......gives 4 PWMs?

    We are using PIC16F1947 in our LED Lamp. Our remote software guy programs it for us. It gives us one PWM dimming stream at the moment

    We now need 4 independently controlled PWM streams. Can this microcontroller give us this?

    PIC16F1947
    http://ww1.microchip.com/downloads/e.../40001414E.pdf

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 1
    Points: 4,222, Level: 15
    Achievements:
    7 years registered
    hexreader's Avatar
    Join Date
    Apr 2011
    Location
    England
    Posts
    485
    Helped
    190 / 190
    Points
    4,222
    Level
    15

    Re: PIC16F1947......gives 4 PWMs?

    Looks as if only 3 timers are available for PWM.

    If "independent" means 4 different frequencies, then you may be out of luck.

    If two or more PWMs can be at the same frequency but different duty cycles, then all is well.

    Don't have that chip, so can't prove it for sure, but that is how I read the datasheet.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Advanced Member level 4
    Points: 7,549, Level: 20

    Join Date
    Jan 2015
    Posts
    1,064
    Helped
    333 / 333
    Points
    7,549
    Level
    20

    Re: PIC16F1947......gives 4 PWMs?

    Try http://www.microchip.com/ParamChartS...branchID=30048 (the Microchip 8-bit parametric search page) and find all of the MCUs that have 4 (or more) PWMs along with any other characteristics that you need.
    Susan


    2 members found this post helpful.

    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 31,975, Level: 43
    Achievements:
    7 years registered

    Join Date
    Sep 2008
    Location
    cambridge
    Posts
    6,671
    Helped
    484 / 484
    Points
    31,975
    Level
    43

    Re: PIC16F1947......gives 4 PWMs?

    Thanks, from the search ony three micros have 4 pwm's...and they dont have enough pins, (only 8) we need a good 24 pins.
    The pwms can be the same frequency.
    I wonder if we should just stick with the pic16f1947?



  5. #5
    Super Moderator
    Points: 74,781, Level: 66
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,166
    Helped
    3452 / 3452
    Points
    74,781
    Level
    66

    Re: PIC16F1947......gives 4 PWMs?

    Hi,

    What PWM frequency? And what duty cycle resolution?
    Maybe software PWM is a solution...

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 4
    Points: 7,549, Level: 20

    Join Date
    Jan 2015
    Posts
    1,064
    Helped
    333 / 333
    Points
    7,549
    Level
    20

    Re: PIC16F1947......gives 4 PWMs?

    Quote Originally Posted by treez View Post
    Thanks, from the search ony three micros have 4 pwm's...and they dont have enough pins, (only 8) we need a good 24 pins.
    That's odd because when I select the "Max # PWM Outputs (including complimentary outputs)" field values from 4 to 28, I can count over 50 devices still selected. Selecting the "Pin Count" field from 20 to 64 still leaves 39 possible devices. Just selecting 28 pin devices (there are no 24-pin devices listed after the PWM selection) shows 11 devices.
    Susan



--[[ ]]--