Wake Up from external pins

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

Wake Up from external pins

Jump to solution
576 Views
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

Labels (1)
Tags (4)
1 Solution
355 Views
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

View solution in original post

1 Reply
356 Views
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