17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

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

Built-in Functions<br />

Availability:<br />

Requires:<br />

while the write_eeprom() operations is polling the done bit to check if the write<br />

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

are performed during an ISR.<br />

This function is only available on devices with supporting hardware on chip.<br />

Nothing<br />

Examples:<br />

#define LAST_VOLUME 10 // Location in EEPROM<br />

volume++;<br />

write_eeprom(LAST_VOLUME,volume);<br />

Example Files:<br />

Also See:<br />

ex_intee.c, ex_extee.c, ce51x.c, ce62x.c, ce67x.c<br />

read_eeprom(), write_program_eeprom(), read_program_eeprom(), data<br />

Eeprom Overview<br />

write_extended_ram( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

write_extended_ram (page,address,data,count);<br />

page – the page in extended RAM to write to<br />

address – the address on the selected page to start writing to<br />

data – pointer to the data to be written<br />

count – the number of bytes to write (0-32768)<br />

undefined<br />

To write data to the extended RAM of the PIC.<br />

On devices with more then 30K of RAM.<br />

Nothing<br />

unsigned int8 data[8] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08};<br />

write_extended_ram(1,0x0000,data,8);<br />

None<br />

read_extended_ram(), Extended RAM Overview<br />

333

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

Saved successfully!

Ooh no, something went wrong!