PIC18F2685 CAN with wrong BAUD Rate
Posted: Thu Oct 15, 2020 6:40 am
Hi,
i have two circuits with PIC18F2685 communicating via CAN. Both PICs work with a 4MHz crystal. The PICs have internal CAN controllers. As a transceiver i use the TJA1050. In the CAN component properties i configured the internal use and a BAUD rate of 125KBaud. The circuit works fine, one circuit is sending CAN Messages and the other one is receiving.
I tried to see the CAN Messages with a PEAK Dongle on my screen but i couldn`t get any messages. Next, i looked at the width of a bit and so i figured out, that both circuits are working with a real BAUD Rate of 100kBaud.
So to summarize, configuring the circuit via the CAN component properties for 125kBaud gives a real BAUD rate of 100kBaud.
best regards
maridd
i have two circuits with PIC18F2685 communicating via CAN. Both PICs work with a 4MHz crystal. The PICs have internal CAN controllers. As a transceiver i use the TJA1050. In the CAN component properties i configured the internal use and a BAUD rate of 125KBaud. The circuit works fine, one circuit is sending CAN Messages and the other one is receiving.
I tried to see the CAN Messages with a PEAK Dongle on my screen but i couldn`t get any messages. Next, i looked at the width of a bit and so i figured out, that both circuits are working with a real BAUD Rate of 100kBaud.
So to summarize, configuring the circuit via the CAN component properties for 125kBaud gives a real BAUD rate of 100kBaud.
best regards
maridd