Hi,
I'l trying to use PWM 0 to 7 on PIC 18F4331. Is it possible with FLocode 3 PWM module if not is it possible with C module and how to ?
Thank's
PWM Pic 18F4331
- 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:
Re: PWM Pic 18F4331
Hello
Using Flowcode's PWM component you can interface a maximum of 2 PWM channels.
We have examples of how to bit bang extra PWM channels if required. This is very simple to acheive using a timer interrupt.
http://www.matrixmultimedia.com/mmforum ... =26&t=6732
If you have to use the hardware PWM channels eg due to program restrictions then you will have to refer to the device datasheet and use C code in Flowcode to configure the remaining 6 channels. The datasheet chapter on PWM is quite long and drawn out so it might be worth printing out this section and having a good read and re-read to make sure you know how all the pieces fit together. This is how I generate component code for more complex devices anyway.
Using Flowcode's PWM component you can interface a maximum of 2 PWM channels.
We have examples of how to bit bang extra PWM channels if required. This is very simple to acheive using a timer interrupt.
http://www.matrixmultimedia.com/mmforum ... =26&t=6732
If you have to use the hardware PWM channels eg due to program restrictions then you will have to refer to the device datasheet and use C code in Flowcode to configure the remaining 6 channels. The datasheet chapter on PWM is quite long and drawn out so it might be worth printing out this section and having a good read and re-read to make sure you know how all the pieces fit together. This is how I generate component code for more complex devices anyway.
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