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.

PreProcessor<br />

Some processors allow different levels for certain fuses. To access these levels, assign<br />

a value to the fuse. For example, on the 18F452, the fuse PROTECT=6 would place the<br />

value 6 into CONFIG5L, protecting code blocks 0 and 3.<br />

When linking multiple compilation units be aware this directive applies to the final object<br />

file. Later files in the import list may reverse settings in previous files.<br />

To eliminate all fuses in the output files use:<br />

#FUSES none<br />

To manually set the fuses in the output files use:<br />

#FUSES 1 = 0xC200 // sets config word 1 to 0xC200<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

#fuses HS,NOWDT<br />

ex_sqw.c<br />

None<br />

#hexcomment<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

#HEXCOMMENT text comment for the top of the hex file<br />

#HEXCOMMENT\ text comment for the end of the hex file<br />

None<br />

Puts a comment in the hex file<br />

Some programmers (MPLAB in particular) do not like comments at the top of the<br />

hex file.<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

#HEXCOMMENT Version 3.1 – requires 20MHz crystal<br />

None<br />

None<br />

#id<br />

Syntax: #ID number 16<br />

#ID number, number, number, number<br />

107

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

Saved successfully!

Ooh no, something went wrong!