When I select the auto-calculation option in MCAL, the generated code makes the sample point 70%.
How can I config it to make the sample point as 80%?
What is the correct way to config the CAN sample point as 80%?
With the generated MCAL code, my calculation for CAN sample point is as follows.
NBT = BTL = (SYNC=1) + (PROPSEG=3 +1) + (PSEG1=1 +1) + (PSEG2=2 +1) = 10
SJW = RJW=1 +1 = 2
Sample point = (NBT - PSEG2) / NBT = 7/10 = 70%
Sampling point is given by point between Phase_seg1 and Phase_seg2.
I can offer CAN timing calculator helping you to configure it properly: