PWM from PIC18F442

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
submarine
Posts: 10
Joined: Wed Feb 14, 2007 10:06 am

PWM from PIC18F442

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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)
}

Post Reply