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

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
Availability:
Requires:
Examples:
Example Files:
Also See:
write_program_memory( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
306
This function is only available on devices with supporting hardware on chip.
Nothing
#define LAST_VOLUME
volume++;
write_eeprom(LAST_VOLUME,volume);
None
read_eeprom(), write_program_eeprom(), read_program_eeprom(),
Overview
write_program_memory( address, dataptr, count );
address is 32 bits .
dataptr is a pointer to one or more bytes
count is a 16 bit integer on PIC16 and 16-bit for PIC18
undefined
Writes count bytes to program memory from dataptr to address. This function is
most effective when count is a multiple of FLASH_WRITE_SIZE, but count needs to
be a multiple of four. Whenever this function is about to write to a location that is a
multiple of FLASH_ERASE_SIZE then an erase is performed on the whole block.
Due to the 24 bit instruction length on PCD parts, every fourth byte of data is
ignored. Fill the ignored bytes with 0x00.
See Program EEPROM Overview for more information on program memory access
Only devices that allow writes to program memory.
Nothing
for(i=0x1000;i<=0x1fff;i++) {
}
int8 write_data[4] = {0x10,0x20,0x30,0x00};
write_program_memory (0x2000, write_data, 4);
None
value=read_adc();
write_program_memory(i, value, 2);
delay_ms(1000);
10
// Location in EEPROM
data Eeprom

Related parts for PCDIDE COMPILER