LPC55S69 : reinit PINT after resuming from Power-Down low power mode

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

LPC55S69 : reinit PINT after resuming from Power-Down low power mode

673 次查看
EugeneHiihtaja
Senior Contributor I

Hello !

I have combine gint and power management example from SDK ( code in attachment also ) and find out that I need

to reinitialize GPIO pins what are included in PINT almost completely.

1.

I have included SW2 and SW3 pins(buttons) to GINT0/1 and PINT ( 0,1 interrupt slot).

When MCU switching between ACTIVE and SLEEP modes, it is no any problems.

GINTx and PINTx callback functions executed as expected.

But after Power-Down mode, I should reinitialize MUX and PINT configurations for be able to have PINTx interrupts back after exit from Power-Down mode.

Is this some feature, bug or it should be like this ?

In your power_manager_lpc.c example you do this trick as well when call  APP_InitWakeupPin(); after MCU resumed from Power down mode.

2. I can see that GINTx can resume MCU from Power-Down mode due Edge type of detection.

   But it looks like no way to specify what kind if Edge should be active Rising or Falling.

  Can it be set somehow on per pin basis what kind of edge  is active when pin is included to GINTx  ?

  GINTx works fine in ACTIVE, SLEEP and POWER-DOWN modes.

3. Or if edges should be detected , pin should be part of PINT ( 8 pin limitation )  only. and edge detection works in ACTIVE and SLEEP modes only ?

I have more than 18 external GPIO pins acting as interrupt line and should be able to detect both Edges in ACTIVE, SLEEP and POWER DOWN modes. Any tricks and tips are welcome.

Regards,

Eugene

0 项奖励
回复
1 回复

614 次查看
Sabina_Bruce
NXP Employee
NXP Employee

Hi Eugene, 

I will review your file. However I will answer on your post regarding the same topic so we can keep this information on one thread.

https://community.nxp.com/thread/517406 

Best Regards,

Sabina

0 项奖励
回复