2 HPWM's at different frequencies?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default 2 HPWM's at different frequencies?

    18F2550 running on external 20mhz resonator. I'm trying to get HPWM 1 to run at 30KHz and HPWM 2 to run at 1KHz. Both appear to run at 1KHz. Any way around this?

    The 30KHz is being used for a boost switcher and the 1KHz is used as LED dimming on the output of the boost switcher.

  2. #2
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: 2 HPWM's at different frequencies?

    Quote Originally Posted by jmgelba View Post
    18F2550 running on external 20mhz resonator. I'm trying to get HPWM 1 to run at 30KHz and HPWM 2 to run at 1KHz. Both appear to run at 1KHz. Any way around this?

    The 30KHz is being used for a boost switcher and the 1KHz is used as LED dimming on the output of the boost switcher.
    On that chip bot hPWM pin's uses Timer 2, so the frequency must be the same.
    You can use Software PWM or change Chip.
    Thanks and Regards;
    Gadelhas

  3. #3
    Join Date
    Sep 2010
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: 2 HPWM's at different frequencies?

    You could set the faster frequency (30K) and then add a divide by 30 circuit on the 2nd hpwm output to get the 1KHz. Think that should work.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts