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.
dsPIC33EP512GM710 config anomalies
Moderator: Benj
-
- 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
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.
<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.
- 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
Many thanks for letting us know of the problems. They should now both be fixed in this latest definition file.
Simply copy the file to your "Flowcode 7/FCD/PIC16" folder and restart Flowcode to load the changes.
Simply copy the file to your "Flowcode 7/FCD/PIC16" folder and restart Flowcode to load the changes.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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.
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.
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel