Wake Up from external pins

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

Wake Up from external pins

跳至解决方案
591 次查看
pietrodicastri
Senior Contributor II

Good morning

I wander if the LLWUP unit has to be gated to work. I do  not find a bit field to do so. Confirm it does not need.

For activating the interrupt of the LLWUP unit from external pin, It is necessary to:

1) enable the interrupt of the pins itself: -> PORT_HAL_SetPinIntMode(BOARD_SW_LLWU_BASE, BOARD_SW_LLWU_PIN, kPortIntFallingEdge);

2) enable the interrupt of the pin in the LLWUP unit -> LLWU_HAL_SetExternalInputPinMode(LLWU_BASE,kLlwuExternalPinDisabled, (llwu_wakeup_pin_t)BOARD_SW_LLWU_EXT_PIN);

Are all the previous actions necessary and sufficient???

Will the interrupt of the pin change requested or simply ignored in such initialization???

Thank You...

Pietro

标签 (1)
标记 (4)
1 解答
370 次查看
mjbcswitzerland
Specialist V

Pietro

See http://www.utasker.com/kinetis/FRDM-K64F.html

and

http://www.utasker.com/kinetis/LLWU.html

The LLWU has not clock gating. The unit's operation is activated when the processor enters the LLS mode.

You just need to enable the LLWU pin (or LLWU module) plus its interrupt to the NVIC.

Regards

Mark

Kinetis: µTasker Kinetis support

K64: µTasker Kinetis FRDM-K64F support / µTasker Kinetis TWR-K64F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

在原帖中查看解决方案

1 回复
371 次查看
mjbcswitzerland
Specialist V

Pietro

See http://www.utasker.com/kinetis/FRDM-K64F.html

and

http://www.utasker.com/kinetis/LLWU.html

The LLWU has not clock gating. The unit's operation is activated when the processor enters the LLS mode.

You just need to enable the LLWU pin (or LLWU module) plus its interrupt to the NVIC.

Regards

Mark

Kinetis: µTasker Kinetis support

K64: µTasker Kinetis FRDM-K64F support / µTasker Kinetis TWR-K64F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market