dsPIC with XC16 compiler -- using the DSP engine

Status
Not open for further replies.

Eugen_E

Full Member level 6
Joined
Nov 29, 2004
Messages
387
Helped
44
Reputation
86
Reaction score
11
Trophy points
1,298
Location
Romania
Visit site
Activity points
2,878
When using a dsPIC microcontroller with the XC16 compiler (and without special DSP libraries) is the DSP engine used at all, if the code does not explicitly use the DSP accumulators or DSP instructions for multiplication, MAC, shifting, etc. ?
I'm interested to know if the compiler uses the DSP registers and instructions all the time, to optimize speed, even for non-DSP code.

As I understand it, to implement a digital filter in C, with the XC16 compiler and without specific DSP libraries, the DSP engine SFR registers should be configured from C and then the __builtin_*() functions should be used. Is this correct, or assembler code is needed?
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…