Internal CAN baud
Posted: Tue Oct 15, 2013 12:39 pm
In the code for the macro CAN init it states that when using internal CAN, to achieve the correct baud a 20MHz crystal must be used.
I need to achieve a baud of 1Mbps and am using a 32MHz crystal. I was planning on using BRGCON1 = 0x00, BRGCON2 = 0xAD and BRGCON3 = 0x02 (based on the bit timing calculator here http://www.kvaser.com/en/support/bit-ti ... lator.html. Does this mean my baud will be incorrect? Is there a workaround to achieve the correct baud when not using a 20MHz crystal?
Thanks
James
I need to achieve a baud of 1Mbps and am using a 32MHz crystal. I was planning on using BRGCON1 = 0x00, BRGCON2 = 0xAD and BRGCON3 = 0x02 (based on the bit timing calculator here http://www.kvaser.com/en/support/bit-ti ... lator.html. Does this mean my baud will be incorrect? Is there a workaround to achieve the correct baud when not using a 20MHz crystal?
Thanks
James