How to set i.MX536 baudrate in Wince 7

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set i.MX536 baudrate in Wince 7

Jump to solution
1,558 Views
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 ?

Labels (1)
0 Kudos
Reply
1 Solution
1,175 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,176 Views
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 Kudos
Reply
1,175 Views
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 Kudos
Reply