DESIGNING CONSTANT CURRENT AND CONSTANT VOLTAGE