FXTH87 Enable ADC on PTA0/1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FXTH87 Enable ADC on PTA0/1

跳至解决方案
1,036 次查看
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

标记 (2)
1 解答
891 次查看
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

在原帖中查看解决方案

2 回复数
890 次查看
davidbrazier
Contributor II

Thanks Tomas, that has clarified it, regards, David

0 项奖励
回复
892 次查看
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