Error in the library DSPIC33EP128MC202?
Moderator: Benj
-
- 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?
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?
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?
- 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?
Can you share the file? I can run dsPIC33EP128mc506 in Flowcode7 without problems.
Flowcode 8 only has a Compiler error somewhere
Flowcode 8 only has a Compiler error somewhere
-
- 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?
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?
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 (72.55 KiB) Viewed 6034 times
- 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?
Hi Justin
Could you try the next code?
I just made it for you.
Could you try the next code?
I just made it for you.
- Attachments
-
- FC7_Started_PWM_Using.fcfx
- (16.58 KiB) Downloaded 201 times
-
- 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?
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
"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
- 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?
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
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
-
- 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?
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
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
- 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?
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.
As you said, these PWM channels must be set to make 3 PWM signal pairs.
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.
As you said, these PWM channels must be set to make 3 PWM signal pairs.
-
- 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?
In my opinion, the library is completely wrong
- Attachments
-
- PIN-DSPIC33EP202.pdf
- (91.92 KiB) Downloaded 178 times
- QMESAR
- 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?
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
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
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact: