Code Monkey home page Code Monkey logo

samv71-mcan-1mbps-example's Introduction

Atmel SAMV71 MCAN@1Mbps Example Project

This project is based on Atmel's MCAN Quick Start project for the SAMV71 Evaluation Kit.

Modifications

2x CAN instances

The original example contains code for the usage of only one of the two available CAN controllers. In this project, the instance was doubled, and the controllers can be tested separately.

MCAN Baudrate Patch

Atmel's ASF drivers for MCAN do not allow fine control of the baudrate parameters, so a patch is needed. The patch implemented here is based on the solution presented in @borkedLabs 2017 article: https://borkedlabs.com/blog/2017/09-24-samc21-same70-samv71-canbus-bosch-lessons-learned/

The patch affects the following files:

  • src/ASF/sam/drivers/mcan/mcan.h (mcan_set_baudrate prototype)
  • src/ASF/sam/drivers/mcan/mcan.c (mcan_set_baudrate and _mcan_set_configuration)

Bit timing values

Bit timing values, defined in conf_mcan.h, were obtained experimentally in order to achieve a 1Mbps baudrate.

Transceiver Standby Control

Code was added to control the standby pins of external CAN transceivers that may be connected to the MCU.

Acknowledgements

The base code for this example was developed by Microchip Technology Inc. and its subsidiaries. The baudrate patch was developed by @borkedLabs.

samv71-mcan-1mbps-example's People

Contributors

duartegalvao avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

samv71-mcan-1mbps-example's Issues

CANOpen Library for SAMV71

Do you have or can recommend a CAN Open Library for the SAMV71? I found a dissertation that referenced canopensamv71 repo, but it doesn't appear to exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.