S32K312 - Can I read LPCMP wakeup value ?

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

S32K312 - Can I read LPCMP wakeup value ?

Jump to solution
858 Views
ssean
Contributor II

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

0 Kudos
Reply
1 Solution
794 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
Reply
4 Replies
820 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 Kudos
Reply
816 Views
ssean
Contributor II

@Robin_Shen 

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

0 Kudos
Reply
795 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply
790 Views
ssean
Contributor II

@Robin_Shen 

Thank you for advise.

I'll test it.

0 Kudos
Reply