Vielleicht ist die AN236 von Microchip hilfreich...