Chapter 12 • mikroC Pro for ARM Built-IN CAN Bus functions
Chapter 12 • mikroC Pro for ARM Built-IN CAN Bus functions In general, any type of microcontroller can be used in a CAN bus-based project. A microcontroller with a built-in CAN controller module (such as ARM processors) will certainly simplify the design and also shorten the development and testing times. Figure 12.1 shows the block diagram of a CAN bus application where a general purpose microcontroller is used and where the microcontroller does not have a built-in CAN controller. As can be seen from this figure, a CAN controller chip (e.g. MCP2515) and a CAN transceiver chip (e.g. MCP2551) are required to establish a CAN node. In such applications, the communication between the microcontroller and the CAN controller module is usually via SPI bus.
Figure 12.1 CAN node where the microcontroller has no built-in CAN controller module In this book we shall be using the STM32F407VGT6 ARM Cortex-M4 microcontroller which has two built-in CAN controller modules. The only additional chip required to establish a CAN node is a CAN transceiver chip. Figure 12.2 shows the block diagram of a CAN node using an ARM processor.
Figure 12.2 CAN node where the microcontroller has built-in CAN controller module 12.1 STM32F407VGT6 Microcontroller Built-in CAN Controller Module
It is important to have some understanding of the operation of the STM32F407VGT6 microcontroller CAN controller module before looking at the functions available to program
● 177
CAN Arduino Dogan.indd 177
30-05-16 13:07