S12P128 ATD can't collect a value

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

S12P128 ATD can't collect a value

633 Views
simonliu
Contributor II

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 Kudos
2 Replies

509 Views
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 Kudos

509 Views
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 Kudos