Why does external crystal needed / recommended for CAN communication ?
Can we use micrcocontroller internal oscillator for LIN communication instead of external crystal components?
I am elaborating my question, for an embedded system with CAN interface I am using CAN transceiver.
Now, is it recommended to use external crystal for such system or internal oscillator (with the MCU) is sufficient?
CAN speed = 500 Kbps.
If we increase CAN data rate upto 5 Mbps (with CAN FD), then still internal oscillator is sufficient?
The CAN bus nor the protocol does need a crystal.
It´s the CAN controller IC that needs it. --> Read the CAN controller IC datasheet about function and specifications.
I am elaborating my question, for an embedded system with CAN interface I am using CAN transceiver.
Now, is it recommended to use external crystal for such system or internal oscillator (with the MCU) is sufficient?
CAN speed = 500 Kbps.
If we increase CAN data rate upto 5 Mbps (with CAN FD), then still internal oscillator is sufficient?
The Xtal can be scaled by counters and/or PLL to change the bit rate but the frequency tolerance error is defined for both must be met.
Slaves might be able to meet 16x or higher UART oversample tolerance error but not combined master and slave.
Usually not. Refer to LIN spec. for detail requirements.
0.5% tolerance of master node needs a crystal clock, 14 % slave tolerance can be always achieved with internal oscillator, 1.5 % to 2 %, if required, can be critical over automotive temperature range.
CAN clock tolerance limits depends on several parameters, review respective application notes, usually internal oscillator isn't sufficient.