Coder Social home page Coder Social logo

Comments (4)

BiggRanger avatar BiggRanger commented on May 28, 2024 1

83.333K is tested on modules with 8MHz and 16MHz crystals. Here is the updated code snippet for MCP2515.cpp

On all the 16MHz CNF[3] parameters I knocked the MSB off the value since nothing is using the SOF pin on the MCP2515.


    uint8_t cnf[3];
  } CNF_MAPPER[] = {
    {  (long)8E6, (long)1000E3, { 0x00, 0x80, 0x00 } },
    {  (long)8E6,  (long)500E3, { 0x00, 0x90, 0x02 } },
    {  (long)8E6,  (long)250E3, { 0x00, 0xb1, 0x05 } },
    {  (long)8E6,  (long)200E3, { 0x00, 0xb4, 0x06 } },
    {  (long)8E6,  (long)125E3, { 0x01, 0xb1, 0x05 } },
    {  (long)8E6,  (long)100E3, { 0x01, 0xb4, 0x06 } },
    {  (long)8E6,   (long)83E3, { 0x01, 0xbe, 0x07 } },
    {  (long)8E6,   (long)80E3, { 0x01, 0xbf, 0x07 } },
    {  (long)8E6,   (long)50E3, { 0x03, 0xb4, 0x06 } },
    {  (long)8E6,   (long)40E3, { 0x03, 0xbf, 0x07 } },
    {  (long)8E6,   (long)20E3, { 0x07, 0xbf, 0x07 } },
    {  (long)8E6,   (long)10E3, { 0x0f, 0xbf, 0x07 } },
    {  (long)8E6,    (long)5E3, { 0x1f, 0xbf, 0x07 } },

    { (long)16E6, (long)1000E3, { 0x00, 0xd0, 0x02 } },
    { (long)16E6,  (long)500E3, { 0x00, 0xf0, 0x06 } },
    { (long)16E6,  (long)250E3, { 0x41, 0xf1, 0x05 } },
    { (long)16E6,  (long)200E3, { 0x01, 0xfa, 0x07 } },
    { (long)16E6,  (long)125E3, { 0x03, 0xf0, 0x06 } },
    { (long)16E6,  (long)100E3, { 0x03, 0xfa, 0x07 } },
    { (long)16E6,   (long)83E3, { 0x03, 0xfe, 0x07 } },
    { (long)16E6,   (long)80E3, { 0x03, 0xff, 0x07 } },
    { (long)16E6,   (long)50E3, { 0x07, 0xfa, 0x07 } },
    { (long)16E6,   (long)40E3, { 0x07, 0xff, 0x07 } },
    { (long)16E6,   (long)20E3, { 0x0f, 0xff, 0x07 } },
    { (long)16E6,   (long)10E3, { 0x1f, 0xff, 0x07 } },
    { (long)16E6,    (long)5E3, { 0x3f, 0xff, 0x07 } },
  };

from arduino-can.

commcad avatar commcad commented on May 28, 2024

Nice one, thanks for posting the solution @BiggRanger

from arduino-can.

demigh0d avatar demigh0d commented on May 28, 2024

Can anyone provide the register settings for ESP32SJA1000.cpp?

Been trying to figure it out myself but have had no luck.

from arduino-can.

pamm01 avatar pamm01 commented on May 28, 2024

Hello, how to add 47.619 kbps ?

from arduino-can.

Related Issues (20)

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.