teachop / FlexCAN_Library

Arduino library for CAN on Teensy 3.1
The Unlicense
155 stars 122 forks source link

clock can from 16mhz xtal #5

Closed teachop closed 10 years ago

teachop commented 10 years ago

Switch CAN0 clock source from the 48MHz bus clock to the 16MHz xtal clock. Update bit phase timings accordingly.

teachop commented 10 years ago

Report from pawelsky on the teensy forum:

Did some quick test @ 1M. Works fine with (24, 48, 72, 96, 120, 144 and 168 MHz). Did not try on 16, 8, 4 and 2 MHz as I'm using the USB serial which is disabled with these clock values. I have 3 filters enabled.

teachop commented 10 years ago

More alternate CPU clock testing from pawelsky indicates the CPU clock can be as low as 8 MHz. Any lower and it will not work reliably.

In addition CAN bus speed has also been confirmed at the other bit rates.