Part Number: MSP430FR2422
Hello,
In our application, we need to wake-up the MCU when there is a signal on pin P1.1 & then measure the voltage present on the same pin.
For this, we have followed below approach.
- configure Pin P1.1 as digital i/p pin
- enable interrupt for the same
- go to sleep mode (LPM0) - upon wake-up, by interrupt on P1.1, reconfigure this pin as analog i/p channel A1
- calculate voltage on P1.1 using ADC & do other tasks
- Go to Point - 1
But, it doesn't work.
MCU wakes-up & performs the voltage calculation task, when interrupted on the pin P1.1 for the first time only.
After that, MCU doesn't generate interrupt on pin P1.1.
Can anyone help us to resolve this issue?
If there is an alternate approach to fulfill our application requirement, please share it with us.
Thank You