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

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 getenv() Parameters:
None
Example Code:
can_init();
can_putd(0x300,data,8,3,TRUE,FALSE);
can_getd(ID,data,len,stat);
Configuration Memory
On all dsPIC30, dsPIC33 and PIC24s the configuration memory is readable and writeable. The
configuration memory contains the configuration bits for things such as the oscillator mode,
watchdog timer enable, etc. These configuration bits are set by the CCS C compiler usually through
a #fuse. CCS provides an API that allows these bits to be changed in run-time.
Relevant Functions:
write_configuration_memory
(ramPtr, n);
or
write_configuration_memory
(offset, ramPtr, n);
read_configuration_memory
(ramPtr, n);
Relevant Preprocessor:
The initial value of the
configuration memory is set
through a #FUSE
60
Write n bytes to configuration memory, starting at offset, from
ramPtr */
Read n bytes of configuration memory, save to ramPtr
Writes n bytes to configuration from ramPtr, no erase needed
// Initializes the CAN bus.
// Places a message on the CAN bus with
// ID = 0x300 and eight bytes of data pointed to by
// “data”, the TRUE causes an extended ID to be
// sent, the FALSE causes no remote transmission
// to be requested.
// Retrieves a message from the CAN bus storing the
// ID in the ID variable, the data at the array pointed
// to by “data”, the number of data bytes in len,
// and statistics about the data in the stat structure.

Related parts for PCDIDE COMPILER