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.

write_configuration_memory( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

write_configuration_memory (dataptr, count)<br />

dataptr: pointer to one or more bytes<br />

count: a 8 bit integer<br />

undefined<br />

Erases all fuses and writes count bytes from the dataptr to the<br />

configuration memory.<br />

All PIC18 flash devices<br />

Nothing<br />

int data[6];<br />

write_configuration_memory(data,6)<br />

None<br />

WRITE_PROGRAM_MEMORY(), Configuration Memory Overview<br />

write_eeprom( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

write_eeprom (address, value)<br />

address is a (8 bit or 16 bit depending on the part) int, the range is device<br />

dependent<br />

value is an 8 bit int<br />

undefined<br />

Write a byte to the specified data EEPROM address. This function may take<br />

several milliseconds to execute. This works only on devices with EEPROM<br />

built into the core of the device.<br />

For devices with external EEPROM or with a separate EEPROM in the same<br />

package (like the 12CE671) see EX_EXTEE.c with CE51X.c, CE61X.c or<br />

CE67X.c.<br />

In order to allow interrupts to occur while using the write operation, use the<br />

#DEVICE option WRITE_EEPROM = NOINT. This will allow interrupts to occur<br />

332

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

Saved successfully!

Ooh no, something went wrong!