Hi, Malc
I do not know wich pic you really use ... but if it is the same as in your Listing ( 16F767)
you should have a look to Post #8899 from Bruce ... ( Jul 2003 )
Alain
Hi, Malc
I do not know wich pic you really use ... but if it is the same as in your Listing ( 16F767)
you should have a look to Post #8899 from Bruce ... ( Jul 2003 )
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 " !!!
*****************************************
i think it's that one
http://www.picbasic.co.uk/forum/show...ghlight=16f767
but it's may 2005
anyways, by searching with post#... you'll redirected there
http://www.picbasic.co.uk/forum/showpost.php?p=8899
which is the same![]()
Last edited by mister_e; - 25th April 2007 at 18:44.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
************************************************** ***********************
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 " !!!
*****************************************
From what i remind 150Hz is less noisy for those motors. And it's also a kind of limitation of the SSPWM as well.
Sure, the noise you hear from your motor is the PWM frequency. Depending the accuracy you need and the OSC you're the maximum PWM frequency should be in the 'yes i can hear that frequency' range
PicMultiCalc came handy... @8MHZ 30KHz PWM give 9 bit accuracy (well 0-267). Question is... how the motor will react to this... i worry a little bit about the output transistor efficiency already in use for that frequency range. Maybe good enough. Don't remind the whole specs.
Last edited by mister_e; - 25th April 2007 at 18:51.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Heuuuuu
Something really, really, really, stupid ...
is it really necessary to have such a high oscillator freq ??? PWM freq would follow ( with HPWM use ... of course !!! )
@ 4Mhz, it gives 245 Hz as a mini ... that's bearable !!!
as there are no time dependant issues ... could use a different XTAL than declared !!! ( 1, 2 or 2.5 Mhz ... from stock ! )
Alain
Last edited by Acetronics2; - 25th April 2007 at 19:02.
************************************************** ***********************
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 " !!!
*****************************************
Who knows... what i wanted to point-out is around the noise you can hear from the motor. 30KHz... who can hear it herebut for sure, the whole thing may not work at all... or not as expected as such high frequency... a little bit why i already suggested something around a linear voltage regulation instead of PWM in the original thread 'Recommendations - Model train controller'
http://www.picbasic.co.uk/forum/show...1&postcount=94
in 250 Hz range PWM, it should work...BTW, let's see what will happen.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks