dsPIC33EP512GM710 config anomalies

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

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 config anomalies

Post 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.

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 config anomalies

Post 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.

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 config anomalies

Post 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 206 times
Simply copy the file to your "Flowcode 7/FCD/PIC16" folder and restart Flowcode to load the changes.

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 config anomalies

Post 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.

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 config anomalies

Post 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.

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 config anomalies

Post by lexicon »

Ah, I didn't know that - thanks.

Post Reply