I am using the 16f628a as a lamp dimmer for my mountain bike light. I can change the duty cycle of the hpwm but can't get the pin to just stop without setting the on time to 0-HPWM just runs and runs and.... Any ideas??
Thanx Dan
I am using the 16f628a as a lamp dimmer for my mountain bike light. I can change the duty cycle of the hpwm but can't get the pin to just stop without setting the on time to 0-HPWM just runs and runs and.... Any ideas??
Thanx Dan
Hi,
just have a ZERO for PWM value ...
CCP1CON = 0 Disables the PWM unit ... think to re-Enable it somewhere.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
AND it's probably safe to set the pin low after that... Maybe.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I know setting on time to zero turns things off but I wanted to use the same pin for flashing the light and hpwm does not run slow enough. CCP1CON = 0
worked great.
Thanx for helping us newbies out.
Dan
This is why forums exist dude!
Good luck!
PS: keep it for you... i learn almost everything here by reading other posts and solutions, datasheet, do experiments and, when possible, helping others. Don't give up.. oh no, don't give up.
Last edited by mister_e; - 14th April 2006 at 17:30.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks