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

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
#ROM directive:
Another method is to use #rom to assign data to program memory.
Built-in-Functions:
The compiler also provides built-in functions to place data in program memory, they are:
Please refer to the help of these functions to get more details on their usage and limitations regarding
erase procedures. These functions can be used only on chips that allow writes to program memory.
The compiler uses the flash memory erase and write routines to implement the functionality.
The data placed in program memory using the methods listed above can be read from width the
following functions:
These functions can be used only on chips that allow reads from program memory. The compiler
uses the flash memory read routines to implement the functionality.
50
The syntax is:
For example:
- Writes count bytes of data from dataptr to address in program memory.
- Every fourth byte of data will not be written, fill with 0x00.
- Reads count bytes from program memory at address to RAM at dataptr. Every fourth
byte of data is read as 0x00
- Reads count bytes from program memory at the logical address to RAM at dataptr.
#rom address = {data, data, … , data}
Places 1,2,3,4 to ROM addresses starting at 0x1000
#rom 0x1000 = {1, 2, 3, 4}
Places null terminated string in ROM
#rom 0x1000={"hello"}
This method can only be used to initialize the program memory.
write_program_memory(address, dataptr, count);
read_program_memory((address, dataptr, count)
read_rom_memory((address, dataptr, count)

Related parts for PCDIDE COMPILER