CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

DSP Engine...

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

DSP Engine...
PostPosted: Sun Apr 05, 2015 3:45 pm     Reply with quote

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: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sun Apr 05, 2015 7:19 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 06, 2015 6:11 am     Reply with quote

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!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group