Have you had a look at the MicroChip app note AN 893 . Hopefully it might be of some help.

This should be the link to it.
http://www.microchip.com/stellent/id...pnote=en012134