View previous topic :: View next topic |
Author |
Message |
ELCouz
Joined: 18 Jul 2007 Posts: 427 Location: Montreal,Quebec
|
DSP Engine... |
Posted: Sun Apr 05, 2015 3:45 pm |
|
|
Hi there,
I was wondering do the CCS compiler (PCD) make use (automatically) of the dsPIC DSP Engine (instructions) for mathematical calculation?
I see a DSP topic in the help file but it says TBD (to be defined)
Thanks! _________________ Regards,
Laurent
-----------
Here's my first visual theme for the CCS C Compiler. Enjoy! |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Sun Apr 05, 2015 7:19 pm |
|
|
The dsPICs are definitely supported. I've coded for them with PCD.
Does PCD take advantage of all the nifty things the dsPICs do in terms of their DSP features?
I don't recall -- but that doesn't mean you can't write something.
I know the dsPIC memory features and what are pretty well supported...
But you need to give us more info as to WHAT you'd like to do.
Then we can go dig the docs and determine if PCD will do it.
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
ELCouz
Joined: 18 Jul 2007 Posts: 427 Location: Montreal,Quebec
|
|
Posted: Mon Apr 06, 2015 6:11 am |
|
|
bkamen wrote: | The dsPICs are definitely supported. I've coded for them with PCD.
Does PCD take advantage of all the nifty things the dsPICs do in terms of their DSP features?
I don't recall -- but that doesn't mean you can't write something.
I know the dsPIC memory features and what are pretty well supported...
But you need to give us more info as to WHAT you'd like to do.
Then we can go dig the docs and determine if PCD will do it.
-Ben |
Thanks Ben for your help!
I found out while digging on the Microchip forum that CCS doesn't support directly the DSP Engine. You have to use the ASM instructions (no C functions)
Quote: | CCS does support all of the extended instruction set that impliments the DSP engine, but do so only through assembly coding and not via pre-formed libraries such as those found when using MPLAB. This is why I want to take small steps to learn how to properly configure and access the DSP engine. Perhaps thinking of it as a separate "engine" isn't necessarily correct as the DSP and MCU opcodes seem to share a lot of the same resources. |
Quote: | But you need to give us more info as to WHAT you'd like to do. |
Nothing particular, just wondering what are the current support of PCD compiler...
DSP functions like PID or MAC...
Thank you guys! _________________ Regards,
Laurent
-----------
Here's my first visual theme for the CCS C Compiler. Enjoy! |
|
|
|