pierremolinaro / acan2517

Arduino CAN driver for MCP2517FD CAN Controller (in CAN 2.0B mode)
MIT License
22 stars 10 forks source link

Reset & Configuration @ 800 KHz #22

Closed mickeyl closed 10 months ago

mickeyl commented 10 months ago

What's the rational of lowering the SPI frequence to 800 KHz for the reset and configuration phase? I can't find any indication of that necessity in the respective datasheets.

pierremolinaro commented 10 months ago

Hello,

The MCP2518FD datasheet, DS20006027B, in note 1 page 69 says "The frequency of SCK has to be less than or equal to 0.85 half the frequency of SYSCLK". In reset and configuration phase, we do not known the actual clock frequency, may be it is 4 MHz. That is why I have lowered the frequency to 800 kHz (yes, it could be 850 kHz).

Pierre

Le 17 nov. 2023 à 17:18, Dr. Mickey Lauer @.***> a écrit :

What's the rational of lowering the SPI frequence to 800 KHz for the reset and configuration phase? I can't find any indication of that necessity in the respective datasheets.

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan2517/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVHFYB4AHVP4XDAI7RLYE6E5TAVCNFSM6AAAAAA7QA2ROGVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4TSNBXHAZDMMI. You are receiving this because you are subscribed to this thread.

mickeyl commented 10 months ago

Excellent. Thanks!