Nop! HPWM will not do the job in this case... look in the PBP manual for the specific limitation on different crystal speed.
in your case you must write directly to the internal register related by the PWM module. look section 11 of the datasheet and look to the Milestag's example. I'm not a fan of HPWM myself too.
555's are not as this bad.. it's working great but it's still a RC oscillator ... like the PIC internal one. So both will shift a litlle bit with the temperature variation.
There's still some easy circuit to build with some CMOS inverter OR Route the CLKOUT of the PIC to a frequency divider OR.... OR...
Last edited by mister_e; - 11th December 2005 at 09:17.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks