dsPIC33EP512GM710 config anomalies

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

Moderator: Benj

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

dsPIC33EP512GM710 config anomalies

Postby lexicon » Thu Nov 02, 2017 10:51 am

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: 54
Joined: Mon Apr 06, 2015 6:30 pm
Has thanked: 20 times
Been thanked: 22 times
Contact:

Re: dsPIC33EP512GM710 config anomalies

Postby lexicon » Mon Nov 06, 2017 10:18 am

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

Re: dsPIC33EP512GM710 config anomalies

Postby Benj » Mon Nov 06, 2017 10:49 am

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.
These users thanked the author Benj for the post:
lexicon (Mon Nov 06, 2017 12:56 pm)
Rating: 5.26%
 

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

Re: dsPIC33EP512GM710 config anomalies

Postby lexicon » Fri Nov 10, 2017 12:36 pm

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

Re: dsPIC33EP512GM710 config anomalies

Postby Benj » Mon Nov 13, 2017 10:51 am

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.
These users thanked the author Benj for the post:
lexicon (Mon Nov 13, 2017 11:31 am)
Rating: 5.26%
 

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

Re: dsPIC33EP512GM710 config anomalies

Postby lexicon » Mon Nov 13, 2017 11:34 am

Ah, I didn't know that - thanks.