LLWU Pin State

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

LLWU Pin State

Jump to solution
1,550 Views
astdom01
Contributor III

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:

  • Connect the signal to a second pin which I can use as GPIO-Pin and read the pin state after wakeup.
  • I dont see in the reference Manual that a LLWU-Pin can not be used as GPIO-Pin as well - but the Processor-Export UI does not allow it. Maybe I can configure the pin manually as GPIO pin and use it that way

Please let me know your intentions about this Problem.

Thank you, Dominic

Labels (1)
0 Kudos
Reply
1 Solution
1,385 Views
antonioconcio
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
Reply
3 Replies
1,386 Views
antonioconcio
NXP Employee
NXP Employee

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

0 Kudos
Reply
1,385 Views
astdom01
Contributor III

Pin sharing works great!! Thank you :-)

0 Kudos
Reply
1,385 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply