SPC560P50L5 CAN Communication data rate calculation
I am trying to write a code to send CAN messages using SPC560P50L5, I am trying to get idea from the SPC5 studio CAN Example but i am having difficulty understanding how to set bit rate since i am planning to set bit rate to 50000bits/s. I have gone through the data sheet and application notes?
Which clock frequency is used when it is set to internal clock? Crystal(12MHz) or system clk (64MHz in clock tree), and while dividing the prescaler do i have to add 1 to it (1 + prescaler)?
Even if i use these setting with 12MHz crystal clock or 64MHz system clock i can't seem to get a full rounded bit rate i.e. 150000bits/s or 50000bits/s?
