Ship and Hibernate modes isolate the battery from the system and minimize the quiescent current.
Hibernate mode is identical to Ship mode with the exception that, in Hibernate mode, the timer is running and functions as an additional wake-up source.
The device enters Ship mode through register TASKENTERSHIPMODE. Register SHPHLDCONFIG configures the SHPHLD button press time, and register TASKSHPHLDCFGSTROBE applies the configured value. When VBUS is not present, the device enters Ship mode immediately. The host software must wait until EVENTSVBUSIN0SET to ensure VBUS is disconnected and discharged before writing to the register.
The device enters Hibernate mode through register TASKENTERHIBERNATE. The host software must wait until EVENTSVBUSIN0SET to ensure VBUS is disconnected and discharged before writing to the register. To apply the timer value, registers TIMERHIBYTE, TIMERMIDBYTE, and TIMERLOBYTE must be configured before register TIMERTARGETSTROBE. In Hibernate mode, the quiescent current is higher compared to Ship mode because the low-power timer is running.
Exiting Hibernate mode using a button press must be configured in register SHPHLDCONFIG and TASKSHPHLDCFGSTROBE.
When entering Ship mode, BUCK can be configured to discharge by enabling their pull downs, see BUCKCTRL0.
The following are alternative ways to exit Ship and Hibernate modes.
Symbol | Description | Min. | Typ. | Max. | Unit |
---|---|---|---|---|---|
tshipToActive | Duration SHPHLD pin must be held low to exit Ship or Hibernate mode | 16 32 64 96 (default) 304 608 1008 3008 |
ms | ||
tRESETBUT | Amount of time for a button press to cause a power cycle | 10 | s | ||
RSHPHLD | Pull-up resistor on SHPHLD pin | 50 | kΩ |
Instance | Base address | Description |
---|---|---|
SHIP | 0x00000B00 |
SHIP registers SHPHLD register map |
Register | Offset | Description |
---|---|---|
TASKENTERHIBERNATE | 0x0 |
Task Enter Hibernate |
TASKSHPHLDCFGSTROBE | 0x1 |
Task Ship Hold config |
TASKENTERSHIPMODE | 0x2 |
Task enter ShipMode |
TASKRESETCFG | 0x3 |
Request reset config |
SHPHLDCONFIG | 0x4 |
Ship Hold button press timer config |
SHPHLDSTATUS | 0x5 |
Status of the SHPHLD pin |
LPRESETCONFIG | 0x6 |
Long press reset config register |
Address offset: 0x0
Task Enter Hibernate
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | A | ||||||||||||||||||||||||||||||||||
Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
W |
TASKENTERHIBERNATE |
Enter Hibernate (Shipmode with Wakeup Timer) |
||||||||||||||||||||||||||||||||
NOEFFECT |
0 |
no effect |
|||||||||||||||||||||||||||||||||
TRIGGER |
1 |
trigger task |
Address offset: 0x1
Task Ship Hold config
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | A | ||||||||||||||||||||||||||||||||||
Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
W |
TASKSHPHLDCONFIGSTROBE |
Load the SHPHLD Config |
||||||||||||||||||||||||||||||||
NOEFFECT |
0 |
no effect |
|||||||||||||||||||||||||||||||||
TRIGGER |
1 |
strobe config |
Address offset: 0x2
Task enter ShipMode
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | A | ||||||||||||||||||||||||||||||||||
Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
W |
TASKENTERSHIPMODE |
Enter Shipmode (without Wakeup timer) |
||||||||||||||||||||||||||||||||
NOEFFECT |
0 |
no effect |
|||||||||||||||||||||||||||||||||
TRIGGER |
1 |
trigger task |
Address offset: 0x3
Request reset config
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | A | ||||||||||||||||||||||||||||||||||
Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
W |
TASKSHPHLDRSTCONFIG |
Use to reset config settings |
||||||||||||||||||||||||||||||||
NOEFFECT |
0 |
no effect |
|||||||||||||||||||||||||||||||||
TRIGGER |
1 |
reset |
Address offset: 0x4
Ship Hold button press timer config
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | B | A | A | A | |||||||||||||||||||||||||||||||
Reset 0x03 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
RW |
SHPHLDTIM |
Ship-Hold press timer |
||||||||||||||||||||||||||||||||
16ms |
0 |
16ms |
|||||||||||||||||||||||||||||||||
32ms |
1 |
32ms |
|||||||||||||||||||||||||||||||||
64ms |
2 |
64ms |
|||||||||||||||||||||||||||||||||
96ms |
3 |
96ms (default) |
|||||||||||||||||||||||||||||||||
304ms |
4 |
304ms |
|||||||||||||||||||||||||||||||||
608ms |
5 |
608ms |
|||||||||||||||||||||||||||||||||
1008ms |
6 |
1008ms |
|||||||||||||||||||||||||||||||||
3008ms |
7 |
3008ms |
|||||||||||||||||||||||||||||||||
B |
RW |
SHPHLDPOLARITY |
Polarity of shphld |
||||||||||||||||||||||||||||||||
NOEFFECT |
0 |
no effect |
|||||||||||||||||||||||||||||||||
INVERT |
1 |
shphld inverted |
Address offset: 0x5
Status of the SHPHLD pin
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | A | ||||||||||||||||||||||||||||||||||
Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
R |
SHPHLDPINSTATUS |
Ship Hold pin Status |
||||||||||||||||||||||||||||||||
LOW |
0 |
Low |
|||||||||||||||||||||||||||||||||
HIGH |
1 |
High |
Address offset: 0x6
Long press reset config register
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | B | A | |||||||||||||||||||||||||||||||||
Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
A |
RW |
LONGTIMRESETDIS |
Long press 10s timer enable |
||||||||||||||||||||||||||||||||
ENABLED |
0 |
LongPress Enabled |
|||||||||||||||||||||||||||||||||
DISABLED |
1 |
Disabled |
|||||||||||||||||||||||||||||||||
B |
RW |
LONGTIMTWOBUTTONSEL |
Select one (default) or two buttons to perform longpress reset |
||||||||||||||||||||||||||||||||
SHPHLD |
0 |
SHPHLD |
|||||||||||||||||||||||||||||||||
SHPHLDGPIO0 |
1 |
SHPHLD GPIO0 |