Hi Dave,
We do not have any script or code with this information, but, in order to do this, you will need to set the following configuration:
All PWRON_CFG bit = 1 (as an edge sensitive input),
All SWxOMODE bit = 0 (any regulator whose SWxOMODE bit is set to “0” will be turned off),
RESTARTEN bit = 1 (setting this bit should make an automatic restart after pressing the PWRON button low for more than 4 seconds),
PWRONRSTEN = 1
PWRON is held low for longer than 4.0 seconds.
This is how this configuration is done:
All PWRON_CFG bit = 1:
PWRON_CFG1 bit 4 on Register 0xE0 (*Extended Page 1)
PWRON_CFG2 bit 4 on Register 0xE1 (*Extended Page 1)
PWRON_CFG3 bit 4 on Register 0xE2 (*Extended Page 1)
All SWxOMODE bit = 0:
SW1ABOMODE bit 5 on Register 0x23
SW2OMODE bit 5 on Register 0x38
SW3AOMODE bit 5 on Register 0x3F
SW3BOMODE bit 5 on Register 0x46
PWRONRSTEN = 1:
PWRONRSTEN bit 1 on Register 0x1B
RESTARTEN = 1:
RESTARTEN bit 0 on Register 0x1B
Then, PWRON is held low for longer than 4.0 seconds. After that, an automatic restart should occur.
*In order to enter to Extended Page 1, you first need to write 0x01 to the page register at address 0x7F.
Best Regards,
Jose