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 />

at 0 and the range depends on the part.<br />

Availability:<br />

Requires:<br />

This command is only for parts with built-in EEPROMS<br />

Nothing<br />

Examples:<br />

#define LAST_VOLUME 10<br />

volume = read_EEPROM (LAST_VOLUME);<br />

Example Files:<br />

Also See:<br />

None<br />

write_eeprom(), Data Eeprom Overview<br />

read_extended_ram( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

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

page – the page in extended RAM to read from<br />

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

data – pointer to the variable to return the data to<br />

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

Undefined<br />

To read data from the extended RAM of the PIC.<br />

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

Nothing<br />

unsigned int8 data[8];<br />

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

None<br />

read_extended_ram(), Extended RAM Overview<br />

read_program_memory( )<br />

read_external_memory( )<br />

Syntax: READ_PROGRAM_MEMORY (address, dataptr, count );<br />

247

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

Saved successfully!

Ooh no, something went wrong!