Page 1 of 1

dsPIC33EP512GM710 config anomalies

Posted: Thu Nov 02, 2017 10:51 am
by lexicon
Hi,

I've just started with the dsPIC33EP512GM710 on FC7 (I'm new to both having only used 8 bit devices on FC5 previously).
I think I've found a couple of device configuration issues:

1) When configuring I/O to ports RD14 & RD15 using the graphic selector, these actually map to RD10 (RD_H2) & RD11 (RD_H3). There is no RD_H6 or RD_H7 in the dropdown list.
2) The CAN bus module has no internal device listed in its properties/channel selector.

The device definition file I'm using is the one supplied in this thread: viewtopic.php?f=69&t=19473

Regards,
Martin.

Re: dsPIC33EP512GM710 config anomalies

Posted: Mon Nov 06, 2017 10:18 am
by lexicon
I had a look in the config file and I see:

<pin name='AN38 / RD14' port='3' bit='10' adc='38' />
<pin name='AN39 / RD15' port='3' bit='11' adc='39' />

which probably explains the mis-configuration of those pins.

However, I could not find any configuration pertaining to the ECAN.

Re: dsPIC33EP512GM710 config anomalies

Posted: Mon Nov 06, 2017 10:49 am
by Benj
Many thanks for letting us know of the problems. They should now both be fixed in this latest definition file.

33EP512GM710.fcdx
(59.68 KiB) Downloaded 45 times


Simply copy the file to your "Flowcode 7/FCD/PIC16" folder and restart Flowcode to load the changes.

Re: dsPIC33EP512GM710 config anomalies

Posted: Fri Nov 10, 2017 12:36 pm
by lexicon
Hi Ben,
Those 2 issues look fine now - thanks.

Can you take a look at the config of the PWM channels please?
There should be 12, but only 8 seem to be defined, and none of the output pins match.

Regards,
Martin.

Re: dsPIC33EP512GM710 config anomalies

Posted: Mon Nov 13, 2017 10:51 am
by Benj
Hi Martin,

The PWM we currently support is the output compare type PWM as this is by far the most common in the chips. The device has 8 OC peripherals which are remappable, the pin can be changed by altering the remap pin component property.

For more specific motor control PWM support we suggest you use C code to control the registers directly.

Re: dsPIC33EP512GM710 config anomalies

Posted: Mon Nov 13, 2017 11:34 am
by lexicon
Ah, I didn't know that - thanks.