mcp2518fd 2.0.0.0
|
MCP2518FD Click is a compact add-on board representing a complete CAN solution used as a control node in a CAN network. This board features the MCP2518FD, an external CAN FD controller with an SPI interface, and a high-speed CAN transceiver, the ATA6563, both from Microchip. The ATA6563, a low-level physical layer IC (PHY), provides a physical connection with the CAN bus itself, while the CAN controller MCP2518FD represents an interface between the MCU and the PHY. It features three operating modes with dedicated fail-safe features, remote wake-up via CAN, and ideally passive behavior when powered off on the CAN bus. This Click boardâ„¢ is suitable for developing a wide range of automotive diagnostic applications, even on MCUs that do not natively support CAN interface.
We provide a library for the MCP2518FD Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for MCP2518FD Click driver.
mcp2518fd_cfg_setup
Config Object Initialization function. mcp2518fd_init
Initialization function. mcp2518fd_default_cfg
Click Default Configuration function. mcp2518fd_transmit_message
Transmits the desired message and checks is message successfully sent. mcp2518fd_receive_message
Receives the message and checks is message successfully received. mcp2518fd_reset
Function for reset using generic transfer This example demonstrates the use of an MCP2518FD click board by showing
the communication between the two click boards configured as a receiver and transmitter.
The demo application is composed of two sections :
Initializes the driver and logger, performs the click default configuration and displays the selected application mode.
Depending on the selected mode, it sends a desired message using CAN protocol or reads all the received data and displays them on the USB UART.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need 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.