mcp251863 2.0.0.0
|
MCP251863 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 MCP251863, IC representing a compact solution with a controller and a transceiver in one package, the MCP2518FD and ATA6563 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 don’t support CAN interface.
We provide a library for the MCP251863 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 MCP251863 Click driver.
mcp251863_cfg_setup
Config Object Initialization function. mcp251863_init
Initialization function. mcp251863_default_cfg
Click Default Configuration function. mcp251863_transmit_message
Transmits the desired message and checks is message successfully sent. mcp251863_receive_message
Receives the message and checks is message successfully received. mcp251863_operation_mode_select
Function for select operation mode. This example demonstrates the use of an MCP251863 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.