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.

#fill_rom<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

#fill_rom value<br />

value is a constant 16-bit value<br />

This directive specifies the data to be used to fill unused ROM locations. When<br />

linking multiple compilation units, this directive must appear exactly the same in<br />

each compilation unit.<br />

#fill_rom 0x36<br />

None<br />

#ROM<br />

#fuses<br />

Syntax:<br />

Elements:<br />

#FUSES options<br />

options vary depending on the device. A list of all valid options has been put at the top<br />

of each devices .h file in a comment for reference. The PCW device edit utility can<br />

modify a particular devices fuses. The PCW pull down menu VIEW | Valid fuses will<br />

show all fuses with their descriptions.<br />

Some common options are:<br />

LP, XT, HS, RC<br />

WDT, NOWDT<br />

PROTECT, NOPROTECT<br />

PUT, NOPUT (Power Up Timer)<br />

BROWNOUT, NOBROWNOUT<br />

Purpose:<br />

This directive defines what fuses should be set in the part when it is programmed. This<br />

directive does not affect the compilation; however, the information is put in the output<br />

files. If the fuses need to be in Parallax format, add a PAR option. SWAP has the<br />

special function of swapping (from the Microchip standard) the high and low BYTES of<br />

non-program data in the Hex file. This is required for some device programmers.<br />

Some fuses are set by the compiler based on other compiler directives. For example,<br />

the oscillator fuses are set up by the #USE delay directive. The debug, No debug and<br />

ICSPN Fuses are set by the #DEVICE ICD=directive.<br />

106

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

Saved successfully!

Ooh no, something went wrong!