LPC55S69: reinitialization RNG after PowerDown

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

LPC55S69: reinitialization RNG after PowerDown

799 Views
EugeneHiihtaja
Senior Contributor I

Hi !

Should I reinitialize RNG peripheral after PowerDown mode ?

I can see initialization function of it :

void RNG_Init(RNG_Type *base)
{
/* Clear ring oscilator disable bit*/
PMC->PDRUNCFGCLR0 = PMC_PDRUNCFG0_PDEN_RNG_MASK;
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
CLOCK_EnableClock(kCLOCK_Rng);
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
}

Are enable RNG  in PMC and Clock only and those registers retains while PowerDown.

It can be similar situation with HASHCRYPT but at list there some reset need to be executed :

void HASHCRYPT_Init(HASHCRYPT_Type *base)
{
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
CLOCK_EnableClock(kCLOCK_HashCrypt);
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
RESET_PeripheralReset(kHASHCRYPT_RST_SHIFT_RSTn);
}

Regards,

Eugene

Labels (1)
0 Kudos
Reply
1 Reply

741 Views
FelipeGarcia
NXP Employee
NXP Employee

Hello Eugene,

 

In power-down mode, only some critical peripherals like the security controller are retained, internal SRAM values can be maintained, and the logic levels of the pins remain static. RNG module is not retained by power-down mode.

 

Best regards,

Felipe

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply