Is it possible to have 50Hz PWM with any PIC?
I think Alain mentioned that CCP module could do that but have no clue how.
Ioannis
Is it possible to have 50Hz PWM with any PIC?
I think Alain mentioned that CCP module could do that but have no clue how.
Ioannis
what chip what osc ?
a 16f18426 can do it @8mhz
a 18f27q43 can do it at any fosc
k42 family is a likely candidate too
Warning I'm not a teacher
I will not stick to specific PIC.
Any one that can do it is OK with me. K42 is most likely the one.
Thanks Richard,
Ioannis
Are you talking PWM or HPWM? Isn't using the CCP module automatically HPWM?
I kept hitting my face into the chart in the PBP manual under HPWM that lists lowest possible frequency per oscillator speed. Even at 4MHz it's a minimum 245Hz (I'm not really interested in PWM).
How are you folks getting around that? Assembler?
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
its not quite that simple, contemporary chips like 18f27q43 have a pwm module that can use alternative clock sources like the mfosc @[500k] and its that allows 50hz operation, some others have much bigger timer2 type prescalers that can get there in a pinch tooHow are you folks getting around that? Assembler?
i doubt the hpwm command can select the alternative clock/prescaler so some manual intervention will be needed. its not rocket science and if you plug it into MCC it does all the heavy lifting
Warning I'm not a teacher
You might consider using the Numerically Controlled Oscillator (NCO) to achieve this low frequency output.
I have recently been looking at the 16F1503 to achieve a stable 1Hz output.
This device has the ability to do both 50% duty cycle (my particular interest) as well as PWM output.
Agreed, this is not something that is doable directly from PBP commands but is quite manageable with register manipulation.
Cheers
Barry
Bookmarks