AN5201(Integrating the LIN driver) question

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

AN5201(Integrating the LIN driver) question

951件の閲覧回数
bjhwang
Contributor I

Dear Sir or Madam,

I'm using S12ZVMx128 EVB for testing LIN communication.

I use OSBDM port to debug the board and using AN5201SW for example.

The problem is the sw runs very well while OSBDM cable is inserted, but after reset(power switch off/on and the cable is removed), the motor is not running. It doesn't perform reset.

Could you give me some advice for this?

Thank you. 

0 件の賞賛
返信
2 返答(返信)

780件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

With OSBDM, the MCU enters Special Single Chip Mode. See Chapter 1.9.1 of the reference manual.

Without the debugger, the MCU enters Normal Single Chip Mode.

Certain registers can be written only once in Normal Mode, for instance MODRR0/1,2, FOPT, CPMUCOP, …

Whereas in Special Mode, they can be written anytime.

So make sure all the registers are written only once.

 

Regards,

Daniel

0 件の賞賛
返信

780件の閲覧回数
bjhwang
Contributor I

Thanks for the feedback.

I have one more question to this AN5201SW.

You said that all the registers are written only once, but I'm confuse about this.

The testing condition is same as I mentioned before(S12ZVMxEVB), and If I perform reset(SW4) while the OSBDM is implemented the motor is not running.(the motor automatically runs at 1500RPM).

So the point is, if I change this registers to normal single chip mode, the board can performs reset and runs at 1500RPM again?

Thanks

Best Regards 

0 件の賞賛
返信