Sample and hold circuitry for monitoring electrodes and other voltages in an implantable neurostimulator is disclosed. The sample and hold circuitry in one embodiment contains multiplexers to selected appropriate voltages and to pass them to two storage capacitors during two different measurement phases. The capacitors are in a later stage serially connected to add the two voltages stored on the capacitors, and voltages present at the top and bottom of the serial connection are then input to a differential amplifier to compute their difference. The sample and hold circuitry is particularly useful in calculating the resistance between two electrodes, and is further particularly useful when resistance is measured using a biphasic pulse. The sample and hold circuitry is flexible, and can be used to measure other voltages of interest during biphasic or monophasic pulsing.