Page 1 of 1

PWM from PIC18F442

Posted: Fri Jun 22, 2007 7:34 pm
by submarine
I want to use PWM module, but the maximum Peroiod(0.8 second) is still too quick for me. How can PWM more slowly operate?
I have tried to complie to C.
Should i do it like ADC-component?

best regards

wei

Posted: Mon Jun 25, 2007 9:56 am
by Benj
Hello

You can lower the speed of the PWM by lowering the crystal clock frequency.

However if you want a really low frequency eg less then 1 hz then it is probably easier to use the output bit flowchart icon. This can be used in a loop as follows.

loop
{
output 0 to bit
delay (length)
output 1 to bit
delay (length)
}