Tool/software: Code Composer Studio
Hi all,
I am having a doubt regarding the example program "CAN_external_transmit" for TMS320F28377S in CCS. In the API, CANBitRateSet(), we are using a set of defined combination of values for bit parameters(TSEG1, TSEG2 and SJW). The set starts with a combination of bit parameter values when a Bit time is divided into 5 time quanta. I am having trouble understanding why the value 5. Is that obtained by putting the minimum values for the bit parameters which are [1..8]tq for Prop_Seg, Phase_Seg1 and Phase_Seg2 and 1tq(fixed) for Sync_Seg? If so, shouldn't the minimum divisions be 4 since the sum of minimum values of bit parameters gives 4 (i.e. 1tq for Prop_Seg, Phase_Seg1, Phase_Seg2 and Sync_Seg)? Someone please help me with understanding how those defined values are obtained.