Error in the library DSPIC33EP128MC202?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
JustinS
Flowcode v5 User
Posts: 40
Joined: Wed Sep 12, 2012 1:59 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Error in the library DSPIC33EP128MC202?

Post by JustinS »

Error in the library DSPIC33EP128MC202?
There is probably a bug in the 33EP128MC502.fcdx file
According to the datascheet, DSPIC33EP128MC202 has 3 PWM channels
The PWM component shows 4 channels: Channel 1, Chanel2, Chanel3, Chanel4
Which is incorrect? :?:

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by celebriums »

Can you share the file? I can run dsPIC33EP128mc506 in Flowcode7 without problems.
Flowcode 8 only has a Compiler error somewhere
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

JustinS
Flowcode v5 User
Posts: 40
Joined: Wed Sep 12, 2012 1:59 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by JustinS »

I checked in V7 the same way.
I do not have the code yet.
I have a problem which channel to choose
In the data dspic33ep128mc202 there is information that there are 3 PWM channels .In the flowcode v7, v8 4PWM channels.
One is so fake, - which?
Attachments
capture_002_29062018_112824.jpg
capture_002_29062018_112824.jpg (72.55 KiB) Viewed 6018 times

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by celebriums »

Hi Justin
Could you try the next code?
I just made it for you.
Attachments
FC7_Started_PWM_Using.fcfx
(16.58 KiB) Downloaded 200 times
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

JustinS
Flowcode v5 User
Posts: 40
Joined: Wed Sep 12, 2012 1:59 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by JustinS »

It is written in technical data:
"High-Speed PWM
Up to Three PWM Pairs with Independent Timing
Dead Time for Rising and Falling Edges
7.14 ns PWM Resolution"

If there are 3 PWMs in dsPIC33EP128MC202 it is not possible to run 4 PWM
4 PWM generators are available only in dsPIC33FJ06GS001 / 101A and dsPIC33FJ09GS302A and that is why it is a bug.

I looked at your example.
I believe that it will not work on a real processor
Two years ago, I used this processor with the C code to start the clock at 140MHz and everything worked OK
If you enter Clock speed 8,000,000 Hz, all frequencies get very low. All interrupt and PWM frequencies are incorrectly calculated
This is very fast DSP has 70MIPS

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by celebriums »

Justin
I think;
The 3 channel pair PWM shows that you can make 6 channel PWM in total.
http://ww1.microchip.com/downloads/en/d ... 00657h.pdf
PAGE 3> TABLE 2

http://www.microchip.com/stellent/group ... 543044.pdf
Page 19
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

JustinS
Flowcode v5 User
Posts: 40
Joined: Wed Sep 12, 2012 1:59 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by JustinS »

If there is 6 PWM, why is there only 4 PWM in flowcodeV6, V7, V8?

PWM Pair means that each PWM can have two outputs. They can be controlled depending on the need. they may have identical or opposite phases, They may also have dead time

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by celebriums »

In this case, @Benj must throw his hand.


If there are 4 PWM channels, this can only be possible with TMR.
In this case there must be 6 PWM channels. 6 pcs PWM setting must be added. :D


As you said, these PWM channels must be set to make 3 PWM signal pairs. :mrgreen:
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

JustinS
Flowcode v5 User
Posts: 40
Joined: Wed Sep 12, 2012 1:59 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by JustinS »

In my opinion, the library is completely wrong
Attachments
PIN-DSPIC33EP202.pdf
(91.92 KiB) Downloaded 177 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by QMESAR »

HI Guys.
take note FC does not support the advanced PWM module modes such as the Motor Control PWM module as in this dsPIC it is a MC chip it has the
Motor Control PWM module that allows for pairing PWM with different modes (example complementary) phase shifts and Dead Times.
it also extends to the Switch Mode power supply PWM modules which can have up to 12 pairs of PWM's

Flow Code PWM Component only supports the Standard PWM Mode /Module check your device in standard PWM mode how many pin are available as PWM and then check the component

There is no bug this is as it is at the moment with PWM on the advanced mcu's you can use the advance mode but use a C call and control the module with your own code

JustinS
Flowcode v5 User
Posts: 40
Joined: Wed Sep 12, 2012 1:59 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by JustinS »

This is why there are 4 PWM channels and should be 3

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Error in the library DSPIC33EP128MC202?

Post by celebriums »

Justin
I asked the same question.
:D
viewtopic.php?f=64&t=19505&p=85376#p85376
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

Post Reply