
Originally Posted by
malc-c
Alain,
One step ahead of you... I'm using a 16F828a and set up a 100K lin pot and 0.1uf capacitor, and a simple bit of code.. but can't get it to work (just slung it together in the past 5 mins)
pwm PORTB.4,D,1
4
Any ideas why I can't get it to work
Hi, Malc
1) May be you should try the HPWM function ... i've noticed it worked much better for motor PWM ... on PORTB.3 instead of B.4 ( ! )
2) Try RCTime ...instead of this stupid POT ... linearity will be far better !!!
AND KEEP WITHIN THE MANUAL VALUES ( 5 -50 k ; 0.1µF ) IF STILL USING POT !!!
heuuuu ... your scale value (254 ) is a bit surprising ...
Alain
Last edited by Acetronics2; - 10th February 2007 at 19:35.
************************************************** ***********************
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 " !!!
*****************************************
Bookmarks