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
PWM from PIC18F442
- 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:
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)
}
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)
}
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel