This should work... it's from an actual production device.
How does it work?
R114 being 0R renders Q101 useless. Thus the battery is connected to the USB5V rail the switch is turned on. I guess this is not a good idea, so I assume R114 is not used in the finished device. Then Q101 connects the battery to the USB5V rail if and only if the USB's 5V is not present. This protects the battery. But how do you charge the battery?
I want to learn from your good design and have many questions.
Why do you use two regulators? Can I combine two regulators can it create problems? I could imagine that one slightly higher than the other results in current flowing from one into the other. Does it impact stability?
I checked the datasheet of the XC6411. It wants ceramic 1uF, 0.1uF at the each input and each output respectively. I guess the other regulator is similar. You put a 1uF there. Why not (at least) 2uF? Why is there no cap before VIN1?
You used a 0.22uF after the combined outputs of the regulators. Did you use 0.22uF because its about two times 0.1uF, which is required by each regulator.
How did you design the output filtering? I guess you filtered 3.0V by a LC-lowpass because it has to source more current than the reference voltage, which is filtered by a RC-lowpass. Is this correct? How did you come up with the corner frequencies? Why do you filter after the regulator and not before?
Sorry for all the questions. But I think its the best to learn from experts and concrete designs.
