dsPIC33EP512GM710 missing PWM channels

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

Post Reply
lexicon
Flowcode v5 User
Posts: 55
Joined: Mon Apr 06, 2015 6:30 pm
Has thanked: 20 times
Been thanked: 22 times
Contact:

dsPIC33EP512GM710 missing PWM channels

Post by lexicon »

Hi,

In the PWM properties channel selector only 8 channels are listed, but there are 12 available on this device.

Regards,
Martin.

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:

Re: dsPIC33EP512GM710 missing PWM channels

Post by Benj »

Hi Martin,

Our PWM outputs are based on the OC (output compare) peripherals and not the high speed PWM peripherals.

Mainly because they are far more stable from device to device and across the entire range.

If you need more PWM channels then you can access the high speed PWM registers directly by using C code icons.

lexicon
Flowcode v5 User
Posts: 55
Joined: Mon Apr 06, 2015 6:30 pm
Has thanked: 20 times
Been thanked: 22 times
Contact:

Re: dsPIC33EP512GM710 missing PWM channels

Post by lexicon »

OK, thanks Ben.
You have actually told me that before - memory's getting carp these days!

The thing that threw me about this is that the datasheet only mentions the 12 high speed PWM channels. It doesn't say the OC modules also have a PWM mode.
Only when you read the OC control register info does it become apparent that you have another 8 'simple' PWM outputs as well.


Regards,
Martin.

Post Reply