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
Solved! Go to Solution.
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.
Best regards,
Tomas
Thanks Tomas, that has clarified it, regards, David
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.
Best regards,
Tomas