Systems of techniques for controlling charge flow during the electrical stimulation of tissue. In one aspect, a method includes receiving a charge setting describing an amount of charge that is to flow during a stimulation pulse that electrically stimulates a tissue, and generating and delivering the stimulation pulse in a manner such that an amount of charge delivered to the tissue during the stimulation pulse accords with the charge setting.