-
Notifications
You must be signed in to change notification settings - Fork 3
AXP192 Information
When the AXP192 works, the SCK/SDA pin of the TWSI interface is pulled up to the system IO power, then the Host can access the AXP192 through this interface. The operation status of the device can be adjusted and monitored flexibly, and plenty of information can be obtained.
Note: "Host" refers to the main processor of the application system.
Note: The "external power supply" mentioned below includes ACIN and VBUS inputs
A key can be connected between the PWRON pin of AXP192 and GND as an independent power on / off key (PEK) Or sleep / wake button. AXP192 can automatically recognize the "long press" and "short press" of this button and respond accordingly.
- ACIN, VBUS and battery access
- N_OE changes from high to low
- PEK
When the SYSEN pin is connected with LDO1, the AXP192 is in power-on / off mode A.
When N_OE is low, when the main power supply (ACIN or VBUS> 3.8V, the battery voltage is higher than the shutdown voltage) meets the requirements, AXP192 will automatically turn on (whether it is turned on automatically when external power is connected can be rewritten according to external needs).
And when N_OE is low and in the shutdown state, the boot action needs to be completed by PEK operation
With external power supply or battery, the change of N_OE from high to low will also cause AXP192 to boot.
AXP192 can be powered on by PEK (press the button for more than “ONLEVEL”). In practical applications, the host's Alarm output signal can also be connected to PWRON—parallel to PEK. When the Alarm signal is active (low level), it is equivalent to pressing PEK, or AXP192 Boot.
After power-on, the DC-DC and LDO will be soft-started in accordance with the set sequence. The foot turns on / off the corresponding power.
When the PEK "long press" time is longer than IRQLEVEL, in the PEK interrupt service routine, the Host can set the "register REG32H 7". Write "1" to notify AXP192 to enter shutdown state. When AXP192 enters the shutdown state, it will turn off all power outputs except LDO1.
The AXP192 will automatically shut down under the following conditions:
- the input voltage is too low, low power protection;
- If the load is too large, the output voltage of the power supply is too low, and the overload protection;
- the input voltage is too high, over-voltage protection (see the "Power Path Management" chapter for details);
- N_OE changes from low to high, and there is no shutdown in the set time;
- When PEK is greater than OFFLEVEL (default 6S), the system will automatically close other outputs except LDO1;
AXP192's automatic protection mechanism can avoid irreversible damage to the power supply device when the application system is abnormal, thereby protecting the entire system.
When the SYSEN pin is not connected to LDO1, the AXP192 is in power-on / off mode B.
In power-on mode B, each power output is controlled by SYSEN / PWREN. When SYSEN / PWREN is high, its corresponding power Source path output is on, otherwise the output will be off.
The difference from method A is that when each power-on source occurs, only a low-level pulse is generated on the WAKEUP pin to notify HOST. Pull SYSEN / PWREN high.
Note: This method is envisaged for processor applications with similar PXA series and power management methods.
As the shutdown source described in shutdown mode A, each shutdown mode will not immediately shut down the output of AXP192 directly, but in the N_LBO tube A low level signal is generated on the pin to notify the system to pull SYSEN / PWREN low to enter shutdown mode; if the system is not pulled low within 2S SYSEN / PWREN, AXP192 will automatically shut down; of course, HOST can also directly pull down SYSEN / PWREN to enter the corresponding shutdown mode.
Note: Like the power-on method B, the power-off method B is also envisaged for PXA series and processor applications with similar power management methods
Note: Some processors are divided into Sleep (SYSEN / PWREN all the way low, all the way high) and Deep Sleep (Deep Sleep, SYSEN / PWREN are both low, all outputs except LDO1 are off) Two modes.
With MannerA turned on, if the system needs to enter Sleep mode and turn off one or more of the power sources, then Can be controlled by REG31 3, decide whether to trigger wakeup by PEK short press signal, let PMU restore all output power to REG31 3. When it is set to 1, the power of each channel is turned off according to the specified power-on sequence.
The following is the control flow in Sleep and wakeup modes.
TODO
TODO
AXP192 supports the use and charging of backup batteries. When there is no main power supply (BAT / ACIN / VBUS), the LDO1 input source selects backup battery, whose output is used to maintain some circuits such as the system's real-time clock.
When the main power is available, you can charge the backup battery by setting REG35H7, and its target voltage is 3.0V by default (can be REG35H[6: 5] setting), default charging current is 200uA (also set by REG35H [1: 0]).
AXP192 provides a list of multiple output voltages and functions as follows:
Output Path | Type | Default Voltage | Application Examples | Drive capability |
---|---|---|---|---|
DCDC1 | BUCK | Settable | 3.3V I/O | 1200mA |
DCDC2 | BUCK | Settable | 1.25Vcore | 1600mA |
DCDC3 | BUCK | Settable | 2.5Vddr | 700mA |
LDO1 | LDO | Settable | RTC | 30mA |
LDO2 | LDO | Settable | Analog/FM | 200mA |
LDO3 | LDO | Settable | 1.8V HDMI | 200mA |
LDOIO0 | LDO | Settable | Vmic | 50mA |
The AXP192 includes three synchronous step-down DC-DCs, four LDOs, and various startup sequences and control methods. DC-DC operating frequency is silent. It is believed that 1.5MHz can be adjusted by setting registers, and small inductors and capacitors can be used in the periphery. 3 DC-DC can be set into PWM mode or automatic mode (automatically switched by the AXP192 according to the size of the load), see "Register REG80H".
TODO
TODO
The average battery level monitor usually estimates the battery level by measuring the battery voltage. In addition to measuring battery voltage, battery current and external power supply voltage and current can also be measured. At the same time, a battery charge and discharge library is integrated.
The Host can more accurately calculate the battery power based on these data. In addition, the Host can also calculate the real-time power consumption of the system, rich power information such as remaining battery power, battery charging progress, remaining battery life, and remaining full time.
The enable control and sampling speed of each ADC can be set through the registers REG82H, 83H, 84H. The sampling results are stored in the phase. For the corresponding registers, see the ADC data class in the register description. The GPIO [3: 0] input range can be set by register REG85H. Whether the battery current direction is charged or discharged is indicated by the register REG00H 2
It can be used as GPI [4:0], ADC Input (monitor external signal), LDO, PWM, etc. For details, please refer to the descriptions of registers 90H-96H.
LDO1 status monitoring signal (pulled up to LDO1) or GPIO5, please refer to the description of REG9EH for usage.
Charge status indication, over-temperature and over-voltage alarm functions, and GPO function. Please refer to register 32H description for usage.
When AXP192 is in power-on / off mode A, this pin is used as the IRQ status indication pin. When an interrupt occurs, its output is pulled low. It is known that HOST performs interrupt processing and pulls up to the system IO power. When AXP192 is in power-on / off mode B, this pin is used as the WAKEUP trigger signal indication and pulled up to LDO1. Its specific function See description of power-on mode B.
The AXP192 contains an internal timer. The timer value can be changed by setting the register REG8AH Bits 6-0. Its minimum resolution is minutes. REG8AH Bit 7 is set when the timer expires.
Address | Description | R/W | Default Value |
---|---|---|---|
00 | Power Status Register | R | |
01 | Power Mode / Charge Status Register | R | |
04 | OTG VBUS Status Register | R | |
06-0B | Data buffer register 0 - 5 | R/W | F0/0F/00/FF/00/00 |
10 | EXTEN & DC-DC2 Switch control register | R/W | X5h |
12 | DC-DC1/3 & LDO2/3 Switch control register | R/W | XFh |
23 | DC-DC2 Voltage setting register | R/W | 16H |
25 | DC-DC2 Voltage slope parameter setting register | R/W | 00H |
26 | DC-DC1 Voltage setting register | R/W | 68H |
27 | DC-DC3 Voltage setting register | R/W | 48H |
28 | LDO2/3 Voltage setting register | R/W | CFH |
30 | VBUS-IPSOUT Path setting register | R/W | 60H |
31 | V OFF Shutdown Voltage setting register | R/W | X3H |
32 | Shutdown, battery detection, CHGLED Control Register | R/W | 46H |
33 | Charge Control register 1 | R/W | C8H |
34 | Charge Control Register 2 | R/W | 41H |
35 | Charging the backup battery Control register | R/W | 22H |
36 | PEK Parameter setting register | R/W | 5DH |
37 | DCDC Converter operating frequency setting register | R/W | 08H |
38 | Battery charge low temperature alarm setting register | R/W | A5H |
39 | Battery charging high temperature alarm setting register | R/W | 1FH |
3A | APS Low Battery Level1 Set Register | R/W | 68H |
3B | APS Low Battery Level2 Set Register | R/W | 5FH |
3C | Battery discharge low temperature alarm setting register | R/W | FCH |
3D | Battery discharge high temperature alarm setting register | R/W | 16H |
80 | DCDC Working mode setting register | R/W | E0H |
82 | ADC Enable Setting Register 1 | R/W | 83H |
83 | ADC Enable Setting Register 2 | R/W | 80H |
84 | ADC Sample Rate Setting, TS Pin Control register | R/W | 32H |
85 | GPIO [3:0] Input range setting register | R/W | X0H |
86 | GPIO1 ADC IRQ Rising edge threshold setting | R/W | FFH |
87 | GPIO1 ADC IRQ Falling edge threshold setting | R/W | 00H |
8A | Timer Control Register | R/W | 00H |
8B | VBUS Monitor Setting Register | R/W | 00H |
8F | Over-temperature shutdown control register | R/W | 01H |
Address | Description | R/W | Default Value |
---|---|---|---|
90 | GPIO0 Control Register | R/W | 07H |
91 | GPIO0 LDO Mode output voltage setting register | R/W | A0H |
92 | GPIO1 Control Register | R/W | 07H |
93 | GPIO2 Control Register | R/W | 07H |
94 | GPIO[2:0] Signal Status Register | R/W | 00H |
95 | GPIO[4:3] Features Control Register | R/W | 00H |
96 | GPIO[4:3] Signal Status Register | R/W | 00H |
97 | GPIO[2:0] Drop Down Control Register | R/W | 00H |
98 | PWM1 Frequency Setting Register | R/W | 00H |
99 | PWM1 Duty Cycle Setting Register 1 | R/W | 16H |
9A | PWM1 Duty Cycle Setting Register 2 | R/W | 0BH |
9B | PWM2 Frequency Setting Register | R/W | 00H |
9C | PWM2 Duty Cycle Setting Register 1 | R/W | 16H |
9D | PWM2 Duty Cycle Setting Register 2 | R/W | 0BH |
9E | N_RSTO (GPIO5) Control Register | R/W | 20H |
Address | Description | R/W | Default Value |
---|---|---|---|
40 | IRQ Enable Control Register 1 | R/W | D8H |
41 | IRQ Enable Control Register 2 | R/W | FFH |
42 | IRQ Enable Control Register 3 | R/W | 3BH |
43 | IRQ Enable Control Register 4 | R/W | C1H |
4A | IRQ Enable Control Register 5 | R/W | 00H |
44 | IRQ Status Register 1 | R/W | 00H |
45 | IRQ Status Register 2 | R/W | 00H |
46 | IRQ Status Register 3 | R/W | 00H |
47 | IRQ Status Register 4 | R/W | 00H |
4D | IRQ Status Register 5 | R/W | 00H |
Address | Description | R/W | Default Value |
---|---|---|---|
56 | ACIN Voltage ADC Data High 8 Bit | R | |
57 | ACIN Voltage ADC Data Low 4 Bit | R | |
58 | ACIN Current ADC Data High 8 Bit | R | |
59 | ACIN Current ADC Data Low 4 Bit | R | |
5A | VBUS Voltage ADC Data High 8 Bit | R | |
5B | VBUS Voltage ADC Data Low 4 Bit | R | |
5C | VBUS Current ADC Data High 8 Bit | R | |
5D | VBUS Current ADC Data Low 4 Bit | R | |
5E | AXP192 Internal Temperature Monitoring ADC Data High 8 Bit | R | |
5F | AXP192 Internal Temperature Monitoring ADC Data Low 4 Bit | R | |
62 | TS Entry ADC Data High 8 Bit, Monitor battery temperature default | R | |
63 | TS Entry ADC Data Low 4 Bit, Monitor battery temperature default | R | |
64 | GPIO0 Voltage ADC Data High 8 Bit | R | |
65 | GPIO0 Voltage ADC Data Low 4 Bit | R | |
66 | GPIO1 Voltage ADC Data High 8 Bit | R | |
67 | GPIO1 Voltage ADC Data Low 4 Bit | R | |
68 | GPIO2 Voltage ADC Data High 8 Bit | R | |
69 | GPIO2 Voltage ADC Data Low 4 Bit | R | |
6A | GPIO3 Voltage ADC Data High 8 Bit | R | |
6B | GPIO3 Voltage ADC Data Low 4 Bit | R | |
70 | High battery instantaneous power 8 Bit | R | |
71 | Battery Instant Power 8 Bit | R | |
72 | Low battery instantaneous power 8 Bit | R | |
78 | Battery Voltage High 8 Bit | R | |
79 | Battery Voltage Low 4 Bit | R | |
7A | Battery Charge CurrentHigh 8 Bit | R | |
7B | Battery Charge Current Low 5 Bit | R | |
7C | Battery Discharge CurrentHigh 8 Bit | R | |
7D | Battery Discharge Current Low 5 Bit | R | |
7E | APS VoltageHigh 8 Bit | R | |
7F | APS Voltage Low 4 Bit | R |
Note: The calculation method of battery power is Pbat = register value * voltage LSB * current LSB / 1000. Among them, the voltage LSB is 1.1mV, the current LSB is 0.5mA, and the calculation unit is mW
Address | Description | R/W | Default Value |
---|---|---|---|
B0 | Battery Charging Coulomb Meter Data Register[31:24] | R/W | 00H |
B1 | Battery Charging Coulomb Meter Data Register[23:16] | R/W | 00H |
B2 | Battery Charging Coulomb Meter Data Register[15:8] | R/W | 00H |
B3 | Battery Charging Coulomb Meter Data Register[7:0] | R/W | 00H |
B4 | Battery discharge coulomb counter data register[31:24] | R/W | 00H |
B5 | Battery discharge coulomb counter data register[23:16] | R/W | 00H |
B6 | Battery discharge coulomb counter data register[15:8] | R/W | 00H |
B7 | Battery discharge coulomb counter data register[7:0] | R/W | 00H |
B8 | Coulomb control register | R/W | 00H |
Coulomb calculation method: C = 65536 * current LSB * (charge coulomb counter - discharge coulomb counter) / 3600 / ADC sampling rate.
Among them: ADC sampling rate refers to the setting of REG84H; current LSB is 0.5mA; calculation unit is mAh.