nrf52840 usb mode and battery mode

Hi,

I'm designing a module based on nrf52840.

This module has two type of power supply:
- usb mode
- li-ion battery mode.


My goal is to use usb to charge the battery and to use the for communication,
when I disconect the usb cable, the battery will be power supply and the communication will do from antenna bluetooth.

CASE 1

When I'm in VBUS usb mode go to "Battery Charging" and charge the battery, at the same time go to AP2112K 3.3V and power nrf52840 (VDD and VDDH are connected together).

The mosfet opens the way to the battery (see the voltage regulator)

CASE 2

When I'm in battery mode, there isn't VBUS, the Battery Charge doesn't work but the battery will be the power supply, the mosfet close the way to the battery (see voltage regulator),

go to AP2112K 3.3V and power nrf52840.

In my schematics I connected together VDD and VDDH; 

I have a question...

Is it correct to link VDD and VDD together or is it better to separate them?

I used theese components

USB ESD PROTECTION [USBLC6-2]

BATTERY CHARGER [TP4056 (battery charging) + DW01A (battery protection) + 8205A(dual mosfet)]

VCC REGULATOR (AP2112K 3.3V)

If you have any other recommendations regarding components, please write...

Thanks regard.

 0640.schematic.pdf

Related