If you go to the site of Microchip there are some routines and specially the schematic, in application notes section, that you can use!

www.microchip.com