The power-fail comparator (POF) provides the host with an early warning of an impending power supply failure.
POF is generated from an always active comparator monitoring the voltage on the VSYS pin. It can be configured through POFCONFIG to give a warning through a GPIO to the host.
If voltage on the VSYS pin drops below VSYSPOF, but voltage remains above the respective BOR threshold on the VBAT or VBUS pins, the VSYS pin is disabled after tPOFWAIT and registers are reset after tPWRDN. If VSYS > VSYSPOF, the chip powers up after tPWRDN. See Power fail warning.
If configured, a power failure warning is issued in the following cases:
- VBUS is removed while the battery is empty or not connected (VBAT < VSYSPOF)
- VBUS rises above VBUSOVP while the battery is empty or not connected (VBAT < VSYSPOF)
- The battery is removed when VBUS is not connected
- The battery discharges until VBAT < VSYSPOF and VBUS is not connected
- Battery voltage drops momentarily below VSYSPOF and VBUS is not connected
To use the POF warning feature, set POFWARNPOLARITY and POFENA to 1 in register POFCONFIG. GPIO settings are located in GPIO — General purpose input/output.
Electrical specification
| Symbol | Description | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|
| POF |
VSYSPOF rising threshold, default Always 100 mV (typ.) above the falling threshold |
2.8 | V | ||
| VSYSPOF | Minimum setting VSYSPOF falling threshold | 2.5 | V | ||
| VSYSPOF | Default setting VSYSPOF falling threshold | 2.7 | V | ||
| VSYSPOF | Maximum setting VSYSPOF falling threshold | 3.4 | V | ||
| tPOF | Reaction time (from crossing the threshold to edge on the warning signal) | 1 | ms | ||
| tPWRDN | Time in power-down mode | 100 | ms | ||
| tPOFWAIT | Delay before enabling the active output capacitor discharge and disconnecting VBAT and VBUS from VSYS | 30 | ms |
Registers
Instances
| Instance | Base address | Description |
|---|---|---|
| POF | 0x00000900 |
POF registers POF register map |
Register overview
| Register | Offset | Description |
|---|---|---|
| POFCONFIG | 0x0 |
Configuration for power failure |
POFCONFIG
Address offset: 0x0
Configuration for power failure
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | C | C | C | C | B | A | |||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
RW |
POFENA |
Enable power failure warning |
||||||||||||||||||||||||||||||||
|
OFF |
0 |
Warning disabled |
|||||||||||||||||||||||||||||||||
|
ENABLED |
1 |
Warning enabled |
|||||||||||||||||||||||||||||||||
| B |
RW |
POFWARNPOLARITY |
Power failure warning polarity |
||||||||||||||||||||||||||||||||
|
LOACTIVE |
0 |
Active low |
|||||||||||||||||||||||||||||||||
|
HIACTIVE |
1 |
Active high |
|||||||||||||||||||||||||||||||||
| C |
RW |
POFVSYSTHRESHSEL |
Power failure threshold select |
||||||||||||||||||||||||||||||||
|
2V8 |
0 |
2.8 V |
|||||||||||||||||||||||||||||||||
|
2V6 |
1 |
2.6 V |
|||||||||||||||||||||||||||||||||
|
2V7 |
2 |
2.7 V |
|||||||||||||||||||||||||||||||||
|
2V9 |
3 |
2.9 V |
|||||||||||||||||||||||||||||||||
|
3V0 |
4 |
3.0 V |
|||||||||||||||||||||||||||||||||
|
3V1 |
5 |
3.1 V |
|||||||||||||||||||||||||||||||||
|
3V2 |
6 |
3.2 V |
|||||||||||||||||||||||||||||||||
|
3V3 |
7 |
3.3 V |
|||||||||||||||||||||||||||||||||
|
3V4 |
8 |
3.4 V |
|||||||||||||||||||||||||||||||||
|
3V5 |
9 |
3.5 V |
|||||||||||||||||||||||||||||||||
|
unused10 |
10 |
2.8 V |
|||||||||||||||||||||||||||||||||
|
unused11 |
11 |
2.8 V |
|||||||||||||||||||||||||||||||||
|
unused12 |
12 |
2.8 V |
|||||||||||||||||||||||||||||||||
|
unused13 |
13 |
2.8 V |
|||||||||||||||||||||||||||||||||
|
unused14 |
14 |
2.8 V |
|||||||||||||||||||||||||||||||||
|
unused15 |
15 |
2.8 V |
|||||||||||||||||||||||||||||||||