PDA

View Full Version : Release HPWM?



Art
- 17th October 2015, 08:48
Hi Guys :)
I’m wondering when HPWM command is used once, what does it take to make it go away?
Or the “proper way”, so you can use the pin as normal.

I know of a few like setting duty cycle 0 or 255, or frequency below what the pic is capable, etc.
but what it supposed to be done to stop it and use the pin entirely manually?

It’s for a digital controlled slayer exciter (mini Tesla coil).
Once I get below the frequency HPWM can handle, I’d like to take over and do lower frequencies manually with DT’s timer.
Cheers, Art.

richard
- 17th October 2015, 11:00
ccpxcon = 0
would do it

although tris bit for cpx would remain cleared.

Art
- 18th October 2015, 09:43
Ok thanks Richard, I will try.
For now I have just been setting duty cycle 100% and then using tris for the pin to toggle a transistor base.


ccpxcon = 0
would do it

although tris bit for cpx would remain cleared.

Thing works BTW :)

https://www.youtube.com/watch?v=yoPz06wjKk8

longpole001
- 20th October 2015, 20:39
looks cool art

Art
- 22nd October 2015, 16:58
Thanks :)
It will make a few of them safer if I can do a small unit in a can for each neon.
Then they can be supplied with 12 Volts 2.5A along the supply cable instead of 3kV 30mA.