Hi,
I am playing with a circuit that charges a capacitor and then dumps it into a battery (pulse charging). All I need to do is turn HPWM channel 1 on and charge cap, then turn HPWM channel 1 off and Turn HPWM channel 2 on to dump the charge back to the battery. Code is attached, but I am wondering if setting CCP1CON to disable is the best way to turn off channel 1 before I turn on channel 2?
Thanks in advance.
Bookmarks