First schematic can work. But MOSFET have no purpose. There is no need for one.
Second schematic doesn't allow battery discharge when charging.
Don't know where you found that schematic, but look at
http://ww1.microchip.com/downloads/e...tes/01149c.pdf
Page 2.
Bookmarks