Best way to shut down HPWM channel?


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Why do you need to turn the channel off? Do you need to use that channel for something else also?

    Can't you just set the PWM duty cycle to 0?

    HPWM 1, 0, 3550


    steve

  2. #2
    Join Date
    Jun 2008
    Location
    Arizona
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Channel shut down

    Hi,

    Sure, I guess I could take the duty cycle to zero. I suppose I can test it.

    I needed to shut the first channel off because this is a closed loop system, I.E. Battery, Mosfet > inductor > bridge > cap > mosfet > battery. Therefore I needed to isolate the input from the output to some degree. The goal was to see if lead acid desulfation can occur if a constant pulse is sent to the battery after charging a cap.

    In theory it should work because we are forcing the lead sulfate back into solution in a brute force kind of method with a high voltage and high current pulse.

    Thanks for the suggestions guys. I suppose either method will work equally well, I just wonder how many clock cycles it will take for either method or if it's even a concern. I'd surely like to use the fastest method.
    Last edited by LetTheSmokeOut; - 26th January 2010 at 22:06.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    The fastest approach is probably just setting the pin to input. Then flipping it back to
    output when you need PWM on again.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Jun 2008
    Location
    Arizona
    Posts
    9


    Did you find this post helpful? Yes | No

    Default PWM shutdown

    Thanks Bruce, I will try that as well.

    Tad

Similar Threads

  1. Multiple HPWM question
    By Johan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th October 2007, 14:00
  2. need help on hpwm
    By helmut in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th August 2007, 16:49
  3. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 16:05
  4. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 15:14
  5. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 03:43

Members who have read this thread : 0

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