Carte à clic CAN FD 6
Carte à clic CAN FD 6
Key Features
- Faible consommation d'énergie, rétrocompatibilité CAN classique, large plage de fonctionnement, comportement optimisé lorsqu'il n'est pas alimenté, bande passante élevée, flexibilité du débit de données, etc.
- Basé sur le contrôleur TCAN4550 - CAN FD qui fournit une interface entre le bus CAN et le contrôleur de protocole CAN jusqu'à 5 Mbps de Texas Instruments
- Peut être utilisé pour les réseaux CAN haut débit dans les applications automobiles et industrielles, en particulier lorsqu'un mode basse consommation avec capacité de réveil via le bus CAN est requis.
- mikroBUS : interface SPI
Overview
Améliorez vos applications automobiles et industrielles avec la carte Click Board™ CAN FD 6. Cette carte complémentaire compacte intègre un émetteur-récepteur CAN hautes performances prenant en charge les protocoles Controller Area Network (CAN) et Controller Area Network Flexible Data-Rate (CAN FD). Développée avec le contrôleur CAN FD TCAN4550 de Texas Instruments, cette carte permet des débits de données allant jusqu'à 5 mégabits par seconde (Mbps).
La carte CAN FD 6 Click Board™ offre des capacités de bande passante élevée et une flexibilité de débit de données, comblant de manière transparente l'écart entre le bus CAN et le processeur système via une interface SPI. Elle prend non seulement en charge les CAN et CAN FD classiques, mais dispose également d'une fonctionnalité de réveil, permettant un réveil local et par bus à l'aide du bus CAN.
- La mise en réseau CAN haut débit simplifiée pour les environnements automobiles et industriels.
- Le mode basse consommation avec fonctions de réveil via le bus CAN garantit une consommation d'énergie efficace.
Cette carte Click Board™ est la solution idéale pour les applications où une communication fiable à haut débit est essentielle, tout en nécessitant une efficacité énergétique. De plus, la carte est prise en charge par une bibliothèque compatible mikroSDK, offrant aux développeurs des fonctions de développement logiciel simplifiées.
Testé minutieusement pour garantir sa fiabilité, le CAN FD 6 Click Board™ est prêt à être intégré dans des systèmes équipés d'une prise mikroBUS™. Bénéficiez d'un transfert de données fluide et d'une gestion efficace de l'alimentation avec cette carte complémentaire avancée.
How Does The CAN FD 6 Click Board™ Work?
The CAN FD 6 Click Board™ is based on the TCAN4550, a CAN transceiver that supports CAN and CAN FD protocols and provides an interface between the CAN bus and the CAN protocol controller up to 5 megabits per second (Mbps) from Texas Instruments. It is characterized by high-bandwidth and data-rate flexibility, provides an SPI interface between the CAN bus and the system processor, and supports wake-up features local and bus wake using the CAN bus. The device includes many protection features providing CAN bus robustness, including fail-safe mode, internal dominant state timeout, and wide bus operating range.
The TCAN4550 has one pin used for waking up the device from Sleep mode. This pin is connected to an external button labelled as WAKE and the PWM pin of the mikroBUS™ socket labelled as WKP to generate a local Wake-Up function. A Wake-Up event on the CAN bus switches the inhibit output pin INH to the high level. The INH pin provides an internal switch towards the battery supply voltage and control external voltage regulators, the MCP1804 from Microchip. Through SMD jumpers labelled as 3V3JMP and 5VJMP, the LDOs output voltages can be used to power up the mikroBUS™ 3.3V and 5V power rails. However, it should be noted that MikroE does not advise powering up their systems this way. That is why these jumpers are left unpopulated by default.
CAN FD 6 Click communicates with MCU using a standard SPI interface supporting clock rates up to 18MHz to transmit and reception CAN frames. With an additional 40MHz crystal, the TCAN4550 can meet CAN FD rates up to 5 Mbps data rates to support higher data throughput and operates from a 6V to 24V external power supply header on the board's right side. This feature makes the TCAN4550 device ideal for many different applications, including those in the automotive market.
The CAN FD 6 Click Board™ comes equipped with the industry-standard DB-9 connector, making interfacing with the CAN bus simple and easy. Besides, the user can connect the CAN signals directly through the CAN External header located on the board's left edge.
In addition to these features, the TCAN4550 also uses several GPIO pins connected to the mikroBUS™ socket. The RST pin the mikroBUS™ can perform the Hardware Reset function, which resets the device to the default settings and puts it into standby mode. This feature can also be achieved through the onboard push-button labelled as RST. Next to these pins, the ATA6571 uses the WKR pin as a dedicated wake-up request pin from a bus wake request and INT pin as an interrupt feature routed on the AN and INT pin of the mikroBUS™ socket. For interrupt purposes, the user can also use GPIO pins from the header positioned on the board's right side.
The CAN FD 6 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VIO SEL jumper. It allows for both 3.3V and 5V capable MCUs to use the UART communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | CAN |
Applications | Can be used for high-speed CAN networks in automotive and industrial applications, especially where low-power mode with wake-up capability via the CAN bus is required. |
On-board modules | TCAN4550 - CAN FD controller that provides an interface between the CAN bus and the CAN protocol controller up to 5Mbps from Texas Instruments |
Key Features | Low power consumption, classic CAN backwards compatible, wide operating range, optimized behaviour when unpowered, high-bandwidth, data-rate flexibility, and more. |
Interface | SPI |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V or 5V, External |
PINOUT DIAGRAM
This table shows how the pinout of the CAN FD 6 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | | Pin | Notes | |||
---|---|---|---|---|---|---|---|
Wake Request | WKR | 1 | AN | PWM | 16 | WKP | Wake Up |
Reset | RST | 2 | RST | INT | 15 | INT | Interrupt |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | NC | |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3.3V | 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 |
JP1 | VIO SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JMPR1 | PWR | Unpopulated | 3V3/5V LDO Jumpers |
JMPR2 | PWR | Unpopulated | 3V3/5V LDO Jumpers |
J1 | BATT | Unpopulated | External Power Supply Header |
J2 | GP | Unpopulated | Configurable GPIO Header |
J3 | CAN | Unpopulated | External CANH/CANL Lines Header |
CAN FD 6 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage VIO | 3.3 | - | 5 | V |
External Supply Voltage BATT | 6 | - | 24 | V |
Data Rate | - | - | 5 | Mbps |
Operating Temperature Range | -40 | +25 | +125 | °C |
Software Support
We provide a library for the CAN FD 6 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for the CAN FD 6 Click Board™ driver.
Key Functions
canfd6_cfg_setup
- Config Object Initialization function.canfd6_init
- Initialization function.canfd6_default_cfg
- Click the Default Configuration function.
Example Description
void application_task ( void ) { #ifdef APP_TRANSMITTER canfd6_mcan_transmit_buffer_contents( &canfd6, CANFD6_FIRST_MSG ); Delay_ms( 1000 ); canfd6_mcan_transmit_buffer_contents( &canfd6, CANFD6_SECOND_MSG ); Delay_ms( 3000 ); #endif #ifdef APP_RECEIVER uint8_t cnt = 0; if ( !canfd6_get_int_pin( &canfd6 ) ) { canfd6_device_interrupts_t canfd6_dev_ir = { 0 }; canfd6_mcan_interrupts_t canfd6_mcan_ir = { 0 }; canfd6_device_read_interrupts( &canfd6, &canfd6_dev_ir ); canfd6_mcan_read_interrupts( &canfd6, &canfd6_mcan_ir ); if ( canfd6_dev_ir.SPIERR ) { canfd6_device_clear_spierr( &canfd6 ); } if ( canfd6_mcan_ir.RF0N ) { canfd6_mcan_rx_header_t canfd6_msg_header = { 0 }; uint8_t num_bytes = 0; uint8_t data_payload[ 64 ] = { 0 }; canfd6_mcan_clear_interrupts( &canfd6, &canfd6_mcan_ir ); num_bytes = canfd6_mcan_read_nextfifo( &canfd6, CANFD6_RXFIFO0, &canfd6_msg_header, data_payload ); log_printf( &logger, "Message received ID[ 0x%X ]: ", canfd6_msg_header.ID ); while ( cnt < 64 ) { if ( data_payload[ cnt ] ) { log_printf( &logger, "%c", data_payload[ cnt ] ); cnt++; } else { log_printf( &logger, "rn" ); cnt = 64; } } } } #endif }
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.CANFD6
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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 6 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 6 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for the CAN FD 6 Click Board™ driver.
Key Functions
canfd6_cfg_setup
- Config Object Initialization function.canfd6_init
- Initialization function.canfd6_default_cfg
- Click the Default Configuration function.
Example Description
void application_task ( void ) { #ifdef APP_TRANSMITTER canfd6_mcan_transmit_buffer_contents( &canfd6, CANFD6_FIRST_MSG ); Delay_ms( 1000 ); canfd6_mcan_transmit_buffer_contents( &canfd6, CANFD6_SECOND_MSG ); Delay_ms( 3000 ); #endif #ifdef APP_RECEIVER uint8_t cnt = 0; if ( !canfd6_get_int_pin( &canfd6 ) ) { canfd6_device_interrupts_t canfd6_dev_ir = { 0 }; canfd6_mcan_interrupts_t canfd6_mcan_ir = { 0 }; canfd6_device_read_interrupts( &canfd6, &canfd6_dev_ir ); canfd6_mcan_read_interrupts( &canfd6, &canfd6_mcan_ir ); if ( canfd6_dev_ir.SPIERR ) { canfd6_device_clear_spierr( &canfd6 ); } if ( canfd6_mcan_ir.RF0N ) { canfd6_mcan_rx_header_t canfd6_msg_header = { 0 }; uint8_t num_bytes = 0; uint8_t data_payload[ 64 ] = { 0 }; canfd6_mcan_clear_interrupts( &canfd6, &canfd6_mcan_ir ); num_bytes = canfd6_mcan_read_nextfifo( &canfd6, CANFD6_RXFIFO0, &canfd6_msg_header, data_payload ); log_printf( &logger, "Message received ID[ 0x%X ]: ", canfd6_msg_header.ID ); while ( cnt < 64 ) { if ( data_payload[ cnt ] ) { log_printf( &logger, "%c", data_payload[ cnt ] ); cnt++; } else { log_printf( &logger, "rn" ); cnt = 64; } } } } #endif }
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.CANFD6
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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 6 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.