PIC16F18446 Xpress board PWM generation

Thread Starter

NIDHINA K D

Joined Nov 27, 2018
1
I received a free PIC16F18446 Xpress board and I tested it by blinking LED and toggling GPIOs. My application needs 4 PWMs for SPWM generation of a single phase AC motor.

Out of 4 PWMs 2 are SPWM which is of variable duty cycle and other 2 are of single duty cycle .Both pair of PWMs should be complementary to each other.

I started with simple PWM generation using CCP module,but failed to create one.I tried to edit code that is for other 8 bit PIC,as I did not get any exact code for this particular IC(don’t know why the links provided does not have complete code,instead it opens IDE with some #include file). While going through the users manual of PIC16F18446 Xpress board ,I found only pin RC3,RA1 has standard function as PWM.But datasheet of PIC16F18446 indicates all GPIO can be used to generate PWM.

So my question is,

1. Is it possible to generate 4 PWMs for my application?

2. Is there any code /link to code/related code/tutorial for PWM generation?

3. Is there any limitation (for functions like PWM generation, CWG ) for this IC when used in this particular Xpress board?
 
Top