CAN FD 4 Click Board
CAN FD 4 Click Board
Overview
The CAN FD 4 Click Board™ features the NCV7344D10R2G, a Controller Area Network (CAN) transceiver, from ON Semiconductor. This Click Board™ provides differential transmit capability to the bus and differential receive capability to the CAN controller.
The CAN FD 4 Click Board™ can be used for various applications such as automotive and industrial networks.
How Does The CAN FD 4 Click Board™ Work?
The CAN FD 4 Click Board™ is based on the NCV7344D10R2G, is a complete CAN protocol controller and the physical bus, from ON Semiconductor. The Click board™ guarantees additional timing parameters to ensure robust communication at data rates beyond 1 Mbps to cope with CAN flexible data rate requirements (CAN FD). These features make the CAN FD 4 Click an good choice for all types of high speed - controller area network (HS−CAN) networks.
The CAN FD 4 Click Board™ provides two operation modes, these modes are selectable pin CS.
First option is normal mode (when CS pin is LOW), where the transceiver is able to communicate via the bus line.The signals are transmitted and received to the CAN controller via the pins TxD and RxD. The slopes on the bus lines outputs are optimized to give low EME. Second option is when CS pin is HIGH, and the CAN FD 4 Click is in Standby mode. In standby mode both the transmitter and receiver are disabled and a very low−power differential receiver monitors the bus lines for CAN bus activity.When a wake−up request is detected by the low−power differential receiver, the signal is first filtered and then verified as a valid wake signal after a time period of twake_filt, the RxD pin is driven low by the transceiver (following the bus) to inform the controller of the wake−up request.
High speed CAN (HS CAN) is a serial bus system that connects microcontrollers, sensors and actuators for realtime control applications. Compatible with ISO 11898-2 (2016) describes the use of the Controller Area Network (CAN) within road vehicles. According to the 7-layer OSI reference model the physical layer of a HS CAN bus system specifies the data transmission from one CAN node to all other available CAN nodes within the network. The CAN transceiver is part of the physical layer.
The CAN FD 4 Click Board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with logic levels of 3.3V.
SPECIFICATIONS
Type | CAN,CAN FD |
Applications | HS CAN networks in automotive applications and HS CAN networks in industrial applications |
On-board modules | NCV7344D10R2G, Controller Area Network (CAN) transceiver from ON Semiconductor. |
Key Features | Automotive and Industrial Networks |
Interface | UART |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 5V |
PINOUT DIAGRAM
This table shows how the pinout for the CAN FD 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
Chip Select | CS | 3 | CS | RX | 14 | TX | UART Transmit |
NC | 4 | SCK | TX | 13 | RX | UART Receive | |
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
NC | 7 | 3.3V | 5V | 10 | 5V | Power Supply | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
Software Support
We provide a library for the CAN FD 4 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library provides functions for communication via UART module, and a function for controlling cs pin, which sets device mode.
Key Functions
void canfd4_write_byte ( uint8_t input )
- Writes single byte of datauint8_t canfd4_read_byte( )
- Reads single byte of datauint8_t canfd4_byte_ready ( )
- Checks if new data ic received
Example Description
The application is composed of three sections :
- System Initialization - Intializes UART module
- Application Initialization - Driver intialization
- Application Task - Choose one mode (read or write) of task. If you reading it checks if data is ready to be read and then reads one byte and if you are wiriting send data via UART.
void application_task ( ) { char tmp; uint8_t drdy_flag; if ( app_mode == APP_MODE_RECEIVER ) { // RECEIVER - UART polling drdy_flag = canfd4_byte_ready( ); if ( 1 == drdy_flag ) { tmp = canfd4_read_byte( ); mikrobus_logWrite( &tmp, _LOG_BYTE ); } } else { // TRANSMITER - TX each 2 sec for ( tmp = 0; tmp < 9; tmp++ ) { canfd4_write_byte( demo_message_data[ tmp ] ); mikrobus_logWrite( ">> MESSAGE SENT <<", _LOG_LINE ); } Delay_ms(2000); } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The CAN FD 4 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the CAN FD 4 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library provides functions for communication via UART module, and a function for controlling cs pin, which sets device mode.
Key Functions
void canfd4_write_byte ( uint8_t input )
- Writes single byte of datauint8_t canfd4_read_byte( )
- Reads single byte of datauint8_t canfd4_byte_ready ( )
- Checks if new data ic received
Example Description
The application is composed of three sections :
- System Initialization - Intializes UART module
- Application Initialization - Driver intialization
- Application Task - Choose one mode (read or write) of task. If you reading it checks if data is ready to be read and then reads one byte and if you are wiriting send data via UART.
void application_task ( ) { char tmp; uint8_t drdy_flag; if ( app_mode == APP_MODE_RECEIVER ) { // RECEIVER - UART polling drdy_flag = canfd4_byte_ready( ); if ( 1 == drdy_flag ) { tmp = canfd4_read_byte( ); mikrobus_logWrite( &tmp, _LOG_BYTE ); } } else { // TRANSMITER - TX each 2 sec for ( tmp = 0; tmp < 9; tmp++ ) { canfd4_write_byte( demo_message_data[ tmp ] ); mikrobus_logWrite( ">> MESSAGE SENT <<", _LOG_LINE ); } Delay_ms(2000); } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The CAN FD 4 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.