FXTH87 Enable ADC on PTA0/1

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

FXTH87 Enable ADC on PTA0/1

Jump to solution
756 Views
davidbrazier
Contributor II

Hi

PTA0 & PTA1 can be read as analog inputs using TPMS_READ_V0 and TPMS_READ_V1 calls, but looking at ref manual and firmware guide, I assume they are digital by default and I can't see how to enable them as analog inputs.  How is it done?

David

Tags (2)
1 Solution
612 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi David,

There is no need to enable them as analog inputs as it is done in the firmware functions TPMS_READ_V0 and V1.

 

You just have to configure STOP mode to be STOP4 (without entering STOP mode) and then call the function. Everything else is done inside the function: pin and ADC configuration, measure and reading. No further configuration is required.

pastedImage_2.png

Best regards,

Tomas

View solution in original post

2 Replies
611 Views
davidbrazier
Contributor II

Thanks Tomas, that has clarified it, regards, David

0 Kudos
613 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi David,

There is no need to enable them as analog inputs as it is done in the firmware functions TPMS_READ_V0 and V1.

 

You just have to configure STOP mode to be STOP4 (without entering STOP mode) and then call the function. Everything else is done inside the function: pin and ADC configuration, measure and reading. No further configuration is required.

pastedImage_2.png

Best regards,

Tomas