How to set i.MX536 baudrate in Wince 7

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to set i.MX536 baudrate in Wince 7

ソリューションへジャンプ
1,531件の閲覧回数
yuancan318
Contributor I

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 ?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,148件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,149件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
1,148件の閲覧回数
seetha
Contributor III

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

0 件の賞賛
返信