LLWU Pin State

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LLWU Pin State

跳至解决方案
1,548 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,383 次查看
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 项奖励
回复
3 回复数
1,384 次查看
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 项奖励
回复
1,383 次查看
astdom01
Contributor III

Pin sharing works great!! Thank you :-)

0 项奖励
回复
1,383 次查看
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 项奖励
回复