I am new to PCB design and need help in the battery management part. I am currently designing a PCB which is to be powered by a battery and this battery can be recharged by a micro-USB via a linear charge management controller, MCP73811/2. Can this component also control the flow of current when the microcontroller is being powered by this battery and be charged at the same time or do I need another component for that? Please let me know if I am not clear enough and I thank you in advance.
The charging current to the battery will be partially stolen by the MCU and sensors. You have to decide whether the MCU steals too much or, that what is left is enough to keep the battery floated without slow continuous depletion leading to eventual battery failure.
If you think that might happen, you will need to disconnect the load (MCU and sensors) before this occurs and let the charger put all its charging current into the battery.
Can this component also control the flow of current when the microcontroller is being powered by this battery and be charged at the same time or do I need another component for that?
You will probably need a comparator circuit that monitors battery voltage level and disconnects the MCU before that voltage gets too low for the battery.