Hello.
I use LPCMP module for wakeup from standby state.
https://community.nxp.com/t5/S32K/S32K312-About-Low-power-and-ADC-input/m-p/1642167
Can I read LPCMP last compared value when MCU wakeup ?
For example.
Switch A: Input 1.0 V
Switch B: Input 2.0 V
A & B connected same LPCMP channel.
LPCMP wakeup input voltage under 3V.
How can I read which switch pushed ?
Best Regards
Solved! Go to Solution.
I don't find a register of LPCMP is able to store the analog value. After wakeup, set the DAC Output Voltage to 1.5V and re-compare the input signal, distinguish it was 1.0v or 2.0v.
Hi
Sorry, if you connect two analog signals to the same LPCMP channel, won't they affect each other? Or can you ensure that only one of the signals is connected to that LPCMP channel at the same time?
It is recommended to connect to two different LPCMP channels, or modify the Integrated 8-bit DAC Voltage Level to distinguish 1.0v or 2.0v after wakeup.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi.
LPCMP channel connected only one analog signal.
But that signal input value(voltage) has two different value according to system condition.
(Voltage divider switch)
How can I distinguish LPCMP last input value?
Is LPCMP module memory last value in register?
Best Regards,
Sean
I don't find a register of LPCMP is able to store the analog value. After wakeup, set the DAC Output Voltage to 1.5V and re-compare the input signal, distinguish it was 1.0v or 2.0v.