Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

dsPIC with XC16 compiler -- using the DSP engine

Status
Not open for further replies.

Eugen_E

Full Member level 6
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top