K82 : wakeup from low power mode due I2C

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

K82 : wakeup from low power mode due I2C

378 Views
EugeneHiihtaja
Senior Contributor I

Hello !

I'm using slave I2C interface and it should wakeup whole system from LLS3 low power mode.

I have specified  .enableWakeUp = true, in configuration of I2C slave interface.

I2C0 and pins in use :

/* PORTB2 (pin G9) is configured as I2C0_SCL */

/* PORTB3 (pin G8) is configured as I2C0_SDA */

But wakeup is not happens. What else should be done for activate this feature ?

Wakeup due LLWU pin, LPTIMER0 works fine in my implementation.

Regards,

Eugene

0 Kudos
2 Replies

302 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Eugene,

The I2C(PTB2 and PTB3) is not able to wakeup LLS3.
They are not in the "Table 19-1. Wakeup Sources for LLWU inputs" at all.
Maybe you should consider listed LLWU_Px pins with I2C function.

Table 19-1. Wakeup Sources for LLWU inputs.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

302 Views
EugeneHiihtaja
Senior Contributor I

Hi Robin !

But should I reconfigure pin as LLWU input and when wakeup is happens, reconfigure it back as I2C like ?

Before :

// PTC11, I2C_SDA, falling edge, Host message ?

PM_SetWakeupConfig(kAPP_PowerModeLls, kAPP_WakeupSourcePin, LLWU_WAKEUP_P11_IDX, kLLWU_ExternalPinFallingEdge); 

After asap after wakeup ?

/* PORTC11 recover as I2C_SDA */
PORT_SetPinMux(BOARD_INITPINS_K81_I2C_SDA_PORT, BOARD_INITPINS_K81_I2C_SDA_PIN, kPORT_MuxAlt2); // ?

Or it is fully transparent if wakeup is set in I2C configuration ?

Regards,

Eugene

0 Kudos