Chronopotentiometry with programmed current