mcp2517fd
2.0.0.0
|
MCP2517FD Click is a complete CAN solution which carries the MCP2517FD CAN FD controller and ATA6563 high-speed CAN transceiver from Microchip, as well as a DB9 9-pin connector.
We provide a library for the MCP2517FD 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 MCP2517FD Click driver.
mcp2517fd_cfg_setup
Config Object Initialization function. mcp2517fd_init
Initialization function. mcp2517fd_default_cfg
Click Default Configuration function. mcp2517fd_transmit_message
Transmits the desired message and checks is message successfully sent. mcp2517fd_receive_message
Receives the message and checks is message successfully received. mcp2517fd_reset
Function for reset using generic transfer This example demonstrates the use of an MCP2517FD 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.