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

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
CAN Bus
These functions allow easy access to the Controller Area Network (CAN) features included with the
MCP2515 CAN interface chip and the PIC24, dsPIC30 and dsPIC33 MCUs. These functions will
only work with the MCP2515 CAN interface chip and PIC microcontroller units containing either a
CAN or an ECAN module. Some functions are only available for the ECAN module and are
specified by the word ECAN at the end of the description. The listed interrupts are not available to
the MCP2515 interface chip.
Relevant Functions:
can_init(void);
can_set_baud(void);
can_set_mode
(CAN_OP_MODE mode);
can_set_functional_mode
(CAN_FUN_OP_MODE mode);
can_set_id(int16 *addr, int32 id, int1 ext)
can_set_buffer_id(BUFFER buffer, int32
id, int1 ext)
can_get_id(BUFFER buffer, int1 ext)
can_putd(int32 id, int8 *data, int8 len, int8
priority, int1 ext, int1 rtr)
can_getd(int32 &id, int8 *data, int8 &len,
struct rx_stat &stat)
can_kbhit()
can_tbe()
Initializes the module to 62.5k baud for ECAN and
125k baud for CAN and clears all the filters and
masks so that all messages can be received from any ID.
Initializes the baud rate of the bus to 62.5kHz for
ECAN and 125kHz for CAN. It is called inside the
can_init() function so there is no need to call it.
Allows the mode of the CAN module to be changed to
listen all mode, configuration mode, listen mode, loop
back mode, disabled mode, or normal mode.
Allows the functional mode of ECAN modules to be
changed to legacy mode, enhanced legacy mode, or
first in firstout (fifo) mode. ECAN
Can be used to set the filter and mask ID's to the
value specified by addr. It is also used to set the ID
of the message to be sent on CAN chips.
Can be used to set the ID of the message to be sent
for ECAN chips. ECAN
Returns the ID of a received message.
Constructs a CAN packet using the given arguments
and places it in one of the available transmit buffers.
Retrieves a received message from one of the CAN
buffers and stores the relevant data in the referenced
function parameters.
Returns TRUE if valid CAN messages is available to
be retrieved from one of the receive buffers.
Returns TRUE if a transmit buffer is is available to
send more data.
57

Related parts for PCDIDE COMPILER