Improved circuitry for measuring analog values in an implantable pulse generator is disclosed. The measurement circuitry executes instructions that define the timing and parameters of measurements to be taken. The instructions include instructions that are responsive to different types of triggers issued by different pulse definition circuits, which pulse definition circuits generate different stimulation waveforms at different groups of electrodes. The measurement circuitry is configurable to update the groups of electrodes used to deliver stimulation.