dsPIC33EP512GM710 missing PWM channels

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

Moderator: Benj

lexicon
Flowcode v5 User
Posts: 44
Joined: Mon Apr 06, 2015 6:30 pm
Has thanked: 16 times
Been thanked: 15 times
Contact:

dsPIC33EP512GM710 missing PWM channels

Postby lexicon » Mon Jan 07, 2019 3:21 pm

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: 14130
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4325 times
Been thanked: 4070 times
Contact:

Re: dsPIC33EP512GM710 missing PWM channels

Postby Benj » Mon Jan 07, 2019 5:18 pm

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.
These users thanked the author Benj for the post:
lexicon (Tue Jan 08, 2019 11:21 am)
Rating: 5.56%
 

lexicon
Flowcode v5 User
Posts: 44
Joined: Mon Apr 06, 2015 6:30 pm
Has thanked: 16 times
Been thanked: 15 times
Contact:

Re: dsPIC33EP512GM710 missing PWM channels

Postby lexicon » Tue Jan 08, 2019 11:21 am

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.
These users thanked the author lexicon for the post:
Benj (Tue Jan 08, 2019 1:22 pm)
Rating: 5.56%