autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
793 stars 279 forks source link

83.33 kbit rate not configured properly #29

Open aleksandar-kotsev opened 5 years ago

aleksandar-kotsev commented 5 years ago

I've checked with an oscilloscope and the 83.33 kbit rate is not sending messages in the correct frequency. I use the https://www.kvaser.com/support/calculators/bit-timing-calculator/ for my esp32 projects and it shows correct results on the oscilloscope. I don't know what sample point percentage are you targeting so i cannot propose CNF1-3 values. If you fix it I would gladly give you feedback from an oscilloscope.

rnd-ash commented 4 years ago

I noticed this as well. However it only seems to affect me if my canbus module uses an 8MHZ crystal. A 16Mhz crystal works perfectly.