Ramp control with programmable parameters
AssigneeNXP B.V.
InventorMikhail Svoiski
Life of this patent
Estimating the term…
Abstract
A ramp output control device includes a driver configured to receive at least two inputs from a microcontroller. The driver includes a time duration register configured to store a current clock count until a preset time duration is reached. The driver also includes a ramp output register configured to store a current output value at an output of the device. The driver also includes a calculation block configured to determine whether to increase the current output value at the output based on the at least two inputs.
Claims17
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.
A system, comprising:
- a controller configured to output at least two values;
- a ramp driver, comprising:
- a time duration register configured to store a clock count for a preset time duration, wherein the preset time duration is determined by a first value from the controller;
- and
- a ramp output register configured to store an output value at an output of the ramp driver;
- and
- a calculation block configured to determine whether to increase the output value at the output based on the first value and a second value from the controller, 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 the second value with an output of the accumulator register;
- a second summing circuit configured to subtract the first input 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.
A method for controlling a ramp output, the method comprising:
- receiving at least two values from a controller, wherein each of the at least two values describes a separate characteristic of the ramp output;
- storing a clock count for a preset time duration, wherein the preset time duration is determined by a first value from the controller;
- storing a current output value at a ramp output register;
- determining whether to increase the current output value from a ramp step calculation algorithm based on the first value and a second value from the controller;
- summing, at a first summing circuit, the second value with an output of an accumulator register, wherein the accumulator register is configured to store an intermediate value for the ramp step calculation algorithm;
- subtracting, at a second summing circuit, the first input from an output of the first summing circuit;
- and
- selecting 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;
- and
- storing the selected output in the accumulator register as a new intermediate value.
Dependencies are inferred from the claim text.