A word on the project: it's a kind of wristwatch that I'm doing as a hobbyist and as a study case, therefore this is why I bother with extra efforts to keep the µCU's power supplied to keep its inner RTC and RAM working. Also this is why I bother with features that can be seen as unnecessary. The device includes many LEDs and to that effect I2C LED drivers; and a SPI-controlled e-paper display (EPD). In low power mode, only the EPD (that consumes very very low power) will be used (to warn user that the batt and USB power are missing)
Rg is "Gate resistance", according to the Datasheet, and I thought it was the resistance between the gate and source but I must be wrong.
The µCU should be a
STM32L011F3P6 that can work with a voltage as low as 1.65V.
So I
re-remade the schematics to include more details, such as the XC's complete pinout. But as not everything is decided yet, I omitted details on the µCU's particular pins that would be used, especially since some signals (XC's shutdown command or Vusb's detection) could go through an I/O extender. Also you can see I removed the diode.
Note that VDDA is now VDD.
I didn't specify every pins of the µCU and I/O extender wiring.
Considering the XC6806 and its battery protection features, in addition to limiting and monitoring the charging voltage ant current :
At first I really simplified it on the schematics, but it has more pins (therefore functions), for example it provides thermal protection as it has an external thermistor to check on the battery's temp. For the battery's low voltage protection, I'm planning on monitoring it on the µCU, to warn the user when the battery gets under a first threshold (e.g. 3.5V), and under a lower voltage (say about 3.3 V) command the XC to shutdown to prevent over-discharge of the battery.
It provides a PGB ("Power Good status") output, that indicates if Vusb is high enough (> Vbatt). This can be read on the µCU to detect USB power, therefore directly monitoring Vusb is not needed. This needs to be taken into account by the µCU to function nominally when if the battery is disconnected (Vbatt = 0) but the device can be powered by USB.
I'm trying to figure out if the Voltage regulator (U1) prevents backward voltage from Vout to Vin, so that the back-up battery's voltage wouldn't be confused with the main battery or USB's (Vcharg), so that the diode can be removed.
I/O extender: the design includes an I/O extender (
PCA9535PW,118) that will be used (amongst other) to detect and command the charger. So it needs to be powered in low-power mode.
I'll have to check the number of available ADC ports on the STM32, if needed I might have to add a multiplexer that should be powered under low-power mode.
Wow, writing this message is the best way for me to progress on the design as will doing so I gather and summarize info on my design and also try to answer by myself the questions that arrise. And thanks again for you reply.