Patent attributes
Devices, systems, and techniques for controlling electrical stimulation therapy are described. In one example, a system may be configured to deliver electrical stimulation therapy to a patient, the electrical stimulation therapy comprising a plurality of therapy pulses at a predetermined pulse frequency over a period of time and deliver, over the period of time, a plurality of control pulses interleaved with at least some therapy pulses of the plurality of therapy pulses. The system may also be configured to sense, after one or more control pulses and prior to an immediately subsequent therapy pulse of the plurality of therapy pulses, a respective evoked compound action potential (ECAP), adjust, based on at least one respective ECAP, one or more parameter values that at least partially defines the plurality of therapy pulses, and deliver the electrical stimulation therapy to the patient according to the adjusted one or more parameter values.