[参考设计] MCP2518FD PRO评估板:CANFD最高8M用户手册/原理图/参考代码等资...

[复制链接]
1335|47
 楼主 | 2020-1-17 14:38 | 显示全部楼层 |阅读模式
本帖最后由 mmuuss586 于 2020-1-17 16:55 编辑

MCP2518FD PRO评估板:CANFD最高8M用户手册/原理图/参考代码等资料汇总分享
用户手册/原理图/参考程序等资料下载见附件,电脑登入

1.png
2.png


  
  
  
MCP2518FD:带SPI接口的外部CANFD控制器
MCP2518FD是一款经济高效且外形小巧的外部CAN FD控制器,可通过可用的SPI接口轻松添加到单片机中。 因此,CAN FD通道可以很容易地添加到缺少CANFD外设或没有足够CAN FD通道的单片机上。
MCP2518FD支持ISO11898-1:2015中规定的经典格式(CAN2.0B)和CAN灵活数据速率(CANFD)格式的CAN帧。

  
主要特性

  • 符合ISO11898-1:2015标准
  • 支持CAN 2.0B和CAN FD
  • 仲裁比特率高达1 Mbps
  • 数据比特率高达8 Mbps
  • 高达20 MHz的SPI时钟速度
  • 31个FIFO可配置为发送或接收
  • 32个灵活的滤波器和掩码对象
  • 一个传输队列
  • 32位时间戳
  • 总线运行状况诊断和错误计数器
  • VDD:2.7V-5.5V
  • 有功电流最大值:12 mA @ 5.5V,40 MHz CAN时钟
  • 温度范围:-40°C至+ 150°C
  • 封装:VDFN14(可湿性侧翼),SOIC14
  • 低功耗模式电流: 10 uA,最大值
  • MCP2518FD Prois a completeCAN solution, which can be used as a control node in a CAN network. The Proboard™is used to provide the microcontroller (MCU) with unrestricted access to theCAN network bus. MCP2518FD Prois equipped with both the control logic and thephysical interface ICs. MCP2518FD Proprovides a reliable high-speed CANinterface to the MCU, providing multiple operating modes (CAN 2.0, CAN FD,Listen Only mode, Sleep and Low Power mode…), CAN bit stream processing(decoding and encoding of the CAN messages, error handling…), TX prioritizing,RX filtering, FIFO buffer, interrupt engine, and more.
    MCP2518FD proissupported by a mikroSDK compliant library, which includes functions thatsimplify software development. This Proboard™ comes as a fully tested product,ready to be used on a system equipped with the mikroBUS™ socket.




mcp25xxfd_demo_h2_rel.zip

2.64 MB, 下载次数: 18

MCP2518FD_DEMO_v01.pdf

198.12 KB, 下载次数: 12

MCP2518FD PRO user guide1.pdf

1.25 MB, 下载次数: 13

使用特权

评论回复
 楼主 | 2020-1-17 14:41 | 显示全部楼层
MCP2518FD Prois a complete CAN solution, which can be used as a control node in a CAN network. The Proboard™ is used to provide the microcontroller (MCU) with unrestricted access to the CAN network bus. MCP2518FD Prois equipped with both the control logic and the physical interface ICs. MCP2518FD Proprovides a reliable high-speed CAN interface to the MCU, providing multiple operating modes (CAN 2.0, CAN FD, Listen Only mode, Sleep and Low Power mode…), CAN bit stream processing (decoding and encoding of the CAN messages, error handling…), TX prioritizing, RX filtering, FIFO buffer, interrupt engine, and more.
MCP2518FD prois supported by a mikroSDK compliant library, which includes functions that simplify software development. This Proboard™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.

使用特权

评论回复
 楼主 | 2020-1-17 14:41 | 显示全部楼层
TABLE OF CONTENTS
1.        How does it work?
2.        CAN Transceiver
3.        CAN Bus Controller
4.        Specifications
5.        Pinout diagram
6.        Additional pins
7.        Jumpers and settings
8.        LEDs and buttons
9.        Software support
10.        Third party support
11.        mikroSDK
12.        Resources
13.        Downloads

使用特权

评论回复
 楼主 | 2020-1-17 14:41 | 显示全部楼层
The physical layer is implemented by using a separate IC, which provides increased robustness, required for the automotive applications. It features three operating modes, remote wake-up via the CAN, and offers ideally passive behavior on the CAN bus when it is powered off. These features allow MCP2518FD Proto be used for the development of a wide range of automotive diagnostic applications, even on MCUs that do not natively support CAN interface.

使用特权

评论回复
 楼主 | 2020-1-17 14:42 | 显示全部楼层
HOW DOES IT WORK?
The Proboard™ consists of a transceiver IC, a low-level physical layer IC (PHY) which provides a physical connection with the CAN bus itself, and a CAN controller IC, which is used as an interface between the MCU and the PHY IC. MCP2518FD Prouses the ATA6560/X, a high-speed CAN transceiver with Standby mode, and the MCP2518FD, CAN FD controller with the SPI interface, both ICs by Microchip.

使用特权

评论回复
 楼主 | 2020-1-17 14:42 | 显示全部楼层
1.png

使用特权

评论回复
 楼主 | 2020-1-17 14:43 | 显示全部楼层
The role of the CAN bus controller is to provide arbitration, message framing, message validation, error detection, message filtering, and so on. Among all other tasks - it is used to provide clearly formatted CAN data for the application layer, running on the host MCU.

使用特权

评论回复
 楼主 | 2020-1-17 14:43 | 显示全部楼层
1.png

使用特权

评论回复
 楼主 | 2020-1-17 14:44 | 显示全部楼层
CAN TRANSCEIVER
As the physical layer (PHY) IC, the ATA6560/1,ATA6562/3, a high-speed CAN transceiver with Standby mode, by Microchip. This IC provides the physical connection with the CAN bus and as such, it provides high resistance to electrostatic discharge and other electromagnetic phenomena, with its bus pins protected against transients, often encountered in the automotive environment. It allows communication speed up to 5Mbps. For the CAN bus device, it is important not to block the entire bus by permanently setting itself as the dominant node. For this reason, the PHY IC has the TX time-out function. It is also important to have defined bus pin states of nodes at all times. The ATA6560/1 PHY IC has its functional behavior predictive under all supply conditions. The ATA6560/1 is powered directly from the mikroBUS™ 5V power rail. This IC can work in several modes:

使用特权

评论回复
 楼主 | 2020-1-17 14:44 | 显示全部楼层
Normal mode is engaged when the STBY pin is at the logic LOW level, while the TXD pin is held to a HIGH logic level. While in the Normal mode, bus biasing is set to half the supply voltage, and the data can be transmitted and received via the CANH and CANL bus lines.

使用特权

评论回复
 楼主 | 2020-1-17 14:44 | 显示全部楼层
If the STBY pin of the ATA6560/1 is set to a HIGH logic level, the PHY IC will enter the Standby mode. While in Standby mode, the device is not able to transmit or correctly receive any data. The internal TX and HSC (high-speed comparator) sections are turned off, reducing the power consumption. Also, the bus lines are biased to the GND level. While in Standby mode, the device actively listens to the CAN bus traffic, looking for a valid wake-up pattern.

使用特权

评论回复
 楼主 | 2020-1-17 14:44 | 显示全部楼层
Since the STBY pin directly controls the operating mode of the PHY IC, it is routed to the onboard SMD jumper labeled as the STBY, allowing more than one way of control. This SMD jumper allows choice between connecting the STBY pin to the GND directly (LOW logic level), or allowing it to be controlled via the source selected by yet another SMD jumper, labeled as STBY SEL: control via the AN pin of the mikroBUS™, or the INT0/GPIO pin of the CAN control module IC.

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
For more CAN transceiver information please referthe web:https://www.microchip.com/design-centers/can

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
CAN BUS CONTROLLER
The MCP2518FD, CAN FD controller with the SPI interface, also by Microchip, is used to control and shape the CAN bus data traffic. While the PHY IC provides CAN communication on a basic - physical level, the MCP2518FD takes care of all the communication and data formatting. It manages the proper decoding and encoding of messages, data arbitration, message transmission prioritizing and filtering, provides the FIFO buffer for the messages, and so on. This IC can even provide a clock source to the host MCU, reducing the number of needed components to a minimum. On one end, it uses the SPI to communicate with the host MCU, while on the other end, it uses RXCAN and TXCAN pins to communicate with the PHY layer IC. The MCP2518FD supports CAN frames in classic format (CAN2.0B), as well as the CAN Flexible Data Rate format (CAN FD), as specified in ISO11898-1:2015.

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
CAN FD controller IC contains 2K of integrated RAM, which is used as the message buffer. Besides this, it also contains a number of SFR registers, used to configure and operate the controller IC, including the configuration of the INT/GPIO pins, their direction and polarity, configuration of the clock section, operating mode (including the Low Power mode for the MCP2518FD IC), FIFO control and message filtering, and so on. All the registers are 32bit wide. The datasheet of the MCP2518FD IC can be consulted for a comprehensive list of all the SFR registers and their functions. However, the provided library contains functions which can be used with MikroElektronika compilers. The included example application demonstrates the use of these functions, and it can be used as a reference for custom development.

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
There are three interrupt pins routed to the mikroBUS™: INT, INT0, and INT1, pins of the MCP2518FD IC are routed to the INT, TX and RX pins, respectively. While the INT pin is always an interrupt output pin, used to alert the MCU of the interrupt event that is enabled and has its flag bit activated, INT0 and INT1 pins are used to alert the MCU about the RX and TX events (if these interrupts are enabled), or as the GPIO pins. INT0 pin is also routed to the onboard SMD jumper labeled as STBY SEL, so that can be used to control the PHY IC standby mode. All interrupt pins are active low.

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
CLKO pin from the MCP2518FD IC is routed to the PWM pin of the mikroBUS™. This pin can be used to provide the clock output for the host MCU. Before it is used, it has to be configured via the SFR registers. It is derived from the input clock, generated by the onboard chip oscillator. The onboard SMD jumper allows frequency selection between 20MHz and 40MHz.

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
This IC can be interfaced directly to the MCU pins. To provide support for both the 3.3V and 5V operating MCUs, the Click board™ is provided with the onboard SMD jumper. This jumper determines only the logic voltage level and it is routed to both the VCC pin of the MCP2518FD IC and the VIO pin of the ATA6560/1. However, for proper operation of the Click board™, both 3.3V and 5V rails from the mikroBUS™ are used.

使用特权

评论回复
 楼主 | 2020-1-17 14:45 | 显示全部楼层
The Click board™ comes equipped with the standard DB-9 connector, making the interfacing with the CAN bus simple and effortless.

使用特权

评论回复
 楼主 | 2020-1-17 14:46 | 显示全部楼层
SPECIFICATIONS
Type        CAN
Applications        It can be used for developing reliable custom CAN applications by using a wide range of MCUs, even if the used MCU does not include an integrated CAN module.
On-board modules        MCP2518FD, CAN FD controller with the SPI interface from Microchip; ATA6560/1, high speed CAN transceiver with Standby mode, from Microchip
Key Features        Expands the existing MCU with the reliable and robust CAN connectivity option. Support for both CAN 2.0B and CAN FD frames, high speed CAN communication up to 5 Mbps, integrated DB9 connector...
Interface        GPIO,SPI
Compatibility        mikroBUS
Click board size        M (31.8 x 60.7 mm)
Input Voltage        3.3V or 5V
PINOUT DIAGRAM

使用特权

评论回复
扫描二维码,随时随地手机跟帖
您需要登录后才可以回帖 登录 | 注册

本版积分规则

我要发帖 投诉建议 创建版块 申请版主

快速回复

您需要登录后才可以回帖
登录 | 注册
高级模式

论坛热帖

在线客服 快速回复 返回顶部 返回列表