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
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
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.
The fastest approach is probably just setting the pin to input. Then flipping it back to
output when you need PWM on again.
Bookmarks