PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 77

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
Data Eeprom
The data eeprom memory is readable and writable in some chips. These options lets the user read
and write to the data eeprom memory. These functions are only available in flash chips.
Relevant Functions:
(8 bit or 16 bit depending on
the device)
read_eeprom(address)
write_eeprom(address,
value)
read_eeprom(address, [N])
read_eeprom(address,
[variable])
read_eeprom(address,
pointer, N)
write_eeprom(address, value)
write_eeprom(address,
pointer, N)
Relevant Preprocessor:
#ROM address={list}
write_eeprom = noint
Relevant Interrupts:
INT_EEPROM
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
DATA_EEPROM
Example Code:
#ROM
0x007FFC00={1,2,3,4,5}
write_eeprom(0x10, 0x1337);
value=read_eeprom(0x0);
Reads the data EEPROM memory location
Erases and writes value to data EEPROM location address.
Reads N bytes of data EEPROM starting at memory location
address. The maximum return size is int64.
Reads from EEPROM to fill variable starting at address
Reads N bytes, starting at address, to pointer
Writes value to EEPROM address
Writes N bytes to address from pointer
Can also be used to put data EEPROM memory data into the hex file.
Allows interrupts to occur while the write_eeprom() operations is
polling the done bit to check if the write operations has completed.
Can be used as long as no EEPROM operations are performed
during an ISR.
Interrupt fires when EEPROM write is complete
Size of data EEPROM memory.
// Inserts this data into the hex file
// The data EEPROM address differs between PICs
// Please refer to the device editor for device specific values.
// Writes 0x1337 to data EEPROM location 10.
// Reads data EEPROM location 10 returns 0x1337.
63

Related parts for PCDIDE COMPILER