Dear all
I use an external pin triggered on any edge as wakup source of the LLWU. After wakup I need to figure out if it was a raising- or a falling-edge. When I use a pin as LLWU-Souce I can not use the same pin as GPIO-Pin anymore (CodeWarrior with Processor-Expert). What is the best practice to find out if it was a falling- or raising-edge which triggered the wakeup? I have 2 ideas:
Please let me know your intentions about this Problem.
Thank you, Dominic
已解决! 转到解答。
Hi Dominic,
You have to enable the "pin sharing" setting in order to use the same pin as GPIO in PEx.
Please refer to this post HERE.
Hope that helps,
Antonio
Hi Dominic,
1) You can config the Wakeup Pin Enable for llwu for rising edge/falling edge/ any change in LLWU_PE register.
2) I recommend you use the first idea, also you can connect a led. Even thought the pin as LLWU , while the state of the pin we can also check .
Hope it helps
Alice