Comments (4)
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.
Nice one, thanks for posting the solution @BiggRanger
from arduino-can.
Can anyone provide the register settings for ESP32SJA1000.cpp?
Been trying to figure it out myself but have had no luck.
from arduino-can.
Hello, how to add 47.619 kbps ?
from arduino-can.
Related Issues (20)
- CANreciever.ino example build issue
- MCP2515 observe() implementation seems incorrect. HOT 3
- ESP to Pi not working
- Logic analyser HOT 2
- ESP32 CAN bus errors at 95 kbps HOT 1
- ESP8266 support HOT 3
- ESP32 esp_intr.h header file deprecation warning HOT 1
- SN65HVD230DR ESP32 not communicating HOT 1
- When compiling a file for esp32 s3 dev board, i get the following errors. Is there a new CAN.c file to help? HOT 6
- Is this lib dead? HOT 6
- How can i use this library with a raspberry pi pico?
- Not getting messages
- ESP32 - only 1 extended filter working, is it possible to specify multiple filters? HOT 13
- Esp32 s3 support HOT 2
- Not working with Espressif 3.0
- 怎么知道数据有没有发送成功
- Esp32 multiple ID filter HOT 1
- CPU restart in callback HOT 1
- Working with MCP2515 on Arduino Nano, but fails on ESP32 HOT 2
- ESP32SJA1000Class::filterExtended mask calculation incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-can.