1. A ramp output control device, comprising: a driver configured to receive at least two inputs from a microcontroller, wherein the driver comprises: a time duration register configured to store a current clock count until a preset time duration is reached; a ramp output register configured to store a current output value at an output of the device; and a calculation block configured to determine whether to increase the current output value at the output based on the at least two inputs, wherein the calculation block comprises: an accumulator register configured to store an intermediate value for a ramp step calculation algorithm for determining the current output value; a first summing circuit configured to sum a first input from the microcontroller with an output of the accumulator register; a second summing circuit configured to subtract a second input from the microcontroller from an output of the first summing circuit; and a multiplexer configured to select one of the output of the first summing circuit and an output of the second summing circuit based on a sign of the output of the second summing circuit, wherein an output of the multiplexer is stored in the accumulator register.