S12P128 ATD can't collect a value

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

S12P128 ATD can't collect a value

856件の閲覧回数
simonliu
Contributor III

I test s12p128 ATD base on KIT33812ECUEVME Evaluation Board, the ATD always can't collect a value.

As for hardware, the partial pressure of VBAT collected by AN0, is measured at 3.6V.

First,I use PE to config ATD,but it  can't collect a value.

pastedImage_1.png

pastedImage_2.png

Second,I refer to S12G128 demo code,Configured as a single measurement.

pastedImage_1.png

pastedImage_2.png

Teset with the same problem.

The S12P128 ATD need other peculiar setup ? BTY,Do you have a separate ATD routine for S12P128?Tks!

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

732件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

I recommend you to look at the document AN2428 and AN3937 MC9S12P-Family Demonstration Lab Training, there can be found the S12P ADC Demo code with description.

AN3937:

https://www.nxp.com/files-static/microcontrollers/doc/app_note/AN3937.pdf 

SW:

http://www.nxp.com/files/microcontrollers/doc/app_note/AN3937SW.zip 

AN2428 – An Overview of the HCS12 ATD Module:

https://www.nxp.com/docs/en/application-note/AN2428.pdf 

I believe it helps you.

Best regards,

Diana

0 件の賞賛
返信

732件の閲覧回数
RadekS
NXP Employee
NXP Employee

Hi,

just small hit/idea:

If I remember correctly, one of KIT33812ECUEVME versions has incorrectly assembled diode (in the wrong direction) for measuring battery voltage (according to User Guide, it should be D2).

I reported it a few years ago, but I am not sure, whether already assembled boards were fixed or not. 

Nothing dangerous, please just check diode orientation.

I hope it helps you.

Best Regards

Radek

0 件の賞賛
返信