Книга: Advanced PIC Microcontroller Projects in C

9.10 mikroC CAN Functions

The mikroC language provides two libraries for CAN bus applications: the library for PIC microcontrollers with built-in CAN modules and the library based on using a SPI bus for PIC microcontrollers having no built-in CAN modules. In this section we will discuss only the library functions available for PIC microcontrollers with built-in CAN modules. Similar functions are available for the PIC microcontrollers with no built-in CAN modules.

The mikroC CAN functions are supported only by PIC18XXX8 microcontrollers with MCP2551 or similar CAN transceivers. Both standard (11 identifier bits) and extended format (29 identifier bits) messages are supported.

The following mikroC functions are provided:

• CANSetOperationMode

• CANGetOperationMode

• CANInitialize

• CANSetBaudRate

• CANSetMask

• CANSetFilter

• CANRead

• CANWrite

Оглавление книги


Генерация: 1.552. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз