C2000 Ramp Control
Create ramp-up and ramp-down function
Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors/ Optimization/ C28x DMC
Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto™ Processors Processors/ Optimization/ C28x DMC
This block implements a ramp-up and ramp-down function. The input is a
target value and the outputs are the set point value
setpt) and a
output is set to
7FFFFFFFh when the output
reaches the input
target value. The
setpt values are signed 32-bit fixed-point numbers with Q values
between 16 and 29. The flag is a long number.
target value is compared with the
If they are not equal, the output
setpt is adjusted up or down by a fixed
step size (0.0000305).
If the fixed step size is relatively large compared to the
value, the output may oscillate around the
- Maximum delay rate
Value that is multiplied by the sampling loop time period to determine the time delay for each ramp step. Valid values are integers greater than 0.
- Minimum limit
Minimum allowable ramp value. If the input falls below this value, it will be saturated to this minimum. The smallest value you can enter is the minimum value that can be represented in fixed-point data format by the input and output blocks to which this Ramp Control block is connected in your model. If you enter a value below this minimum, an error occurs at the start of code generation or simulation. For example, if your input is in Q29 format, its minimum value is -4.
- Maximum limit
Maximum allowable ramp value. If the input goes above this value, it will be reduced to this maximum. The largest value you can enter is the maximum value that can be represented in fixed-point data format by the input and output blocks to which this Ramp Control block is connected in your model. If you enter a value above this maximum, an error occurs at the start of code generation or simulation. For example, if your input is in Q29 format, its maximum value is 3.9999....