Hi krishna,
I am afraid that you cannot set exact 500kbps CAN bus clock with 25.6MHz bus clock source.
I would like to highly recommend use external oscillator instead of PLL for real CAN nodes. PLL as clock source is fine for debugging, however we cannot be sure with clock accuracy due to PLL unlock range up to 2.5%. 8 or 16MHz crystal should be fine; 4MHz is probably too slow for 500kbps.
Optionally you could trim IRC oscillator to 1MHz instead of 1.024MHz. However I am afraid that this do not brings equivalent benefit in compare to amount of work for trimming.
In attachment you could look at CAN baudrate calculator.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------