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

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
);
Relevant Preprocessor:
#ROM address={list}
#DEVICE(WRITE_EEPROM=ASYNC)
Relevant Interrupts:
INT_EEPROM
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters
PROGRAM_MEMORY
READ_PROGRAM
FLASH_WRITE_SIZE
FLASH_ERASE_SIZE
Example Code:
For chips where getenv(“FLASH_ERASE_SIZE”) > getenv(“FLASH_WRITE_SIZE”)
78
#ROM 0x300={1,2,3,4}
WRITE_PROGRAM_EEPROM
WRITE_PROGRAM_MEMORY
erase_program_eeprom(0x00000300);
write_program_eeprom(0x00000300,0x123456
value=read_program_eeprom(0x00000300);
write_program_memory(0x00000300,data,12);
read_program_memory(0x00000300,value,12);
Can be used to put program memory data into
the hex file.
Can be used with #DEVICE to prevent the write
function from hanging. When this is used make
sure the eeprom is not written both inside and
outside the ISR.
Interrupt fires when eeprom write is complete.
Size of program memory
Returns 1 if program memory can be read
Smallest number of bytes written in flash
Smallest number of bytes erased in flash
// Inserts this data into the hex
file.
// Erases 32 instruction locations
starting at 0x0300
// Writes 0x123456 to 0x0300
// Reads 0x0300 returns 0x123456
// Erases 32 instructions starting
// at 0x0300 (multiple of erase block)
// Writes 12 bytes from data to 0x0300
//reads 12 bytes to value from 0x0300
- Writes 3 bytes, does not erase (use
ERASE_PROGRAM_EEPROM)
- Writes any number of bytes, will erase a
block whenever the first (lowest) byte in a
block is written to. If the first address is not the
start of a block that block is not erased
- While writing, every fourth byte will be
ignored. Fill ignored bytes with 0x00. This is
due to the 32 bit addressing and 24 bit
instruction length on the PCD devices.

Related parts for PCDIDE COMPILER