Dear all,
I am trying to test i.mx536 can bus function.
My bsp is IMX53_WCE700_1105_BSP_SOURCE and using SMD project.
I refer to i.MX53 ARD Windows Embedded Compact 7 Reference Manual and build CANApp.exe.
But it can.t find set canbus baudrate function !!
Does anyone know how to set can bus function ?
解決済! 解決策の投稿を見る。
CAN timing parameters are defined on the common_can.h located at
WINCE700\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V3\INC\common_can.h
This define the CONTROL REGISTER of the CAN module.
For example : try to configure PRESDIV=132 and PSEG1=0, PSEG2=0;
So Baudrate =66.5MHz/((PRESDIV+1)*(SYNC_SEG+PROP_SEG + PSEG1 + 2+PSEG2 + 1))
=66.5M/((132+1)*(1+0+0+2+0+1))
=125KHz
CAN timing parameters are defined on the common_can.h located at
WINCE700\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V3\INC\common_can.h
This define the CONTROL REGISTER of the CAN module.
For example : try to configure PRESDIV=132 and PSEG1=0, PSEG2=0;
So Baudrate =66.5MHz/((PRESDIV+1)*(SYNC_SEG+PROP_SEG + PSEG1 + 2+PSEG2 + 1))
=66.5M/((132+1)*(1+0+0+2+0+1))
=125KHz
Hi,
Here what is 66.5MHz??
And in driver how they are writing the value ?? I got the variable in common_can.h but the value 0x06a7 is being written to control register. This means PRESDIV=6 .??
Someone could explain?
Regards,
Seetharam