11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FilesC Language Featuresdoing this a special frame pointer register is not required and instead can be allocated to user code.In addition, code, stack space and executation time which would ordinarily be used in manipulationof the frame pointer is not needed.3.2.2 Configuration FusesThe <strong>dsPIC</strong> processors have several locations which contain the configuration bits or fuses. Thesebits may be set using the configuration macro. The macro has the form:__CONFIG(n, x)(there are two leading underscore characters) where n is the configuration register identifier, and xis the value that is to be in the configuration word. The macro is defined in , so be sureto include this into the module that uses this macro.The configuration macro programs one register 24-bit register at a time, although only the lower16-bits of each register are used for configuration data. Specially named quantities are defined in theheader file appropriate for the processor you are using, to help you set the required features. Thiscan be seen in Table 3.1.3.3 Files3.3.1 Source FilesThe extension used with source files is important as it is used by the compiler drivers to determinetheir content. Source files containing C code should have the extension .c, assembler files shouldhave extensions of .as, relocatable object files require the .obj extension, and library files shouldbe named with a .lib extension.3.3.2 Symbol FilesThe DSPICC -G option tells the compiler to produce several symbol files which can be used bydebuggers and simulators to perform symbolic and source-level debugging. Using the --IDE optionmay also enable symbol file generation as well.The -G option produces an absolute symbol files which contain both assembler- and C-levelinformation. This file is produced by the linker after the linking process has ben completed. Ifno symbol filename is specified, a default filename of file.sym will be used, where file is thebasename of the first source file specified on the command line. For example, to produce a symbolfile called test.sym which includes C source-level information:24DSPICC --CHIP=30F6014 -Gtest.sym test.c init.c

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!