17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

#device<br />

Syntax:<br />

Elements:<br />

#DEVICE chip options<br />

#DEVICE Compilation mode selection<br />

Chip Options-<br />

chip is the name of a specific processor (like: PIC16C74 ), To get a current list of<br />

supported devices:<br />

START | RUN | <strong>CCS</strong>C +Q<br />

Options are qualifiers to the standard operation of the device. Valid options are:<br />

*=5 Use 5 bit pointers (for all parts)<br />

*=8 Use 8 bit pointers (14 and 16 bit parts)<br />

*=16 Use 16 bit pointers (for 14 bit parts)<br />

ADC=x<br />

Where x is the number of bits read_adc() should<br />

return<br />

ICD=TRUE<br />

Generates code compatible with Microchips ICD<br />

debugging hardware.<br />

ICD=n<br />

For chips with multiple ICSP ports specify the port<br />

number being used. The default is 1.<br />

WRITE_EEPROM=ASYNC Prevents WRITE_EEPROM from hanging while<br />

writing is taking place. When used, do not write to<br />

EEPROM from both ISR and outside ISR.<br />

WRITE_EEPROM = NOINT Allows interrupts to occur while the<br />

write_eeprom() operations is polling the done bit<br />

to check if the write operations has completed.<br />

Can be used as long as no EEPROM operations<br />

are performed during an ISR.<br />

HIGH_INTS=TRUE<br />

Use this option for high/low priority interrupts on<br />

the PIC® 18.<br />

%f=.<br />

No 0 before a decimal pint on %f numbers less<br />

than 1.<br />

OVERLOAD=KEYWORD Overloading of functions is now supported.<br />

Requires the use of the keyword for overloading.<br />

OVERLOAD=AUTO<br />

PASS_STRINGS=IN_RAM<br />

CONST=READ_ONLY<br />

CONST=ROM<br />

NESTED_INTERRUPTS=TRUE<br />

Default mode for overloading.<br />

A new way to pass constant strings to a function<br />

by first copying the string to RAM and then<br />

passing a pointer to RAM to the function.<br />

Uses the ANSI keyword CONST definition,<br />

making CONST variables read only, rather than<br />

located in program memory.<br />

Uses the <strong>CCS</strong> compiler traditional keyword<br />

CONST definition, making CONST variables<br />

located in program memory.<br />

Enables interrupt nesting for PIC24, dsPIC30, and<br />

dsPIC33 devices. Allows higher priority interrupts<br />

100

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

Saved successfully!

Ooh no, something went wrong!