microchip-pic-avr-tools / powersmart-dcld

MPLAB® PowerSmart™ SDK - Digital Control Library Designer Configuration Tool & Code Generator
https://microchip-pic-avr-tools.github.io/powersmart-dcld/
14 stars 4 forks source link

#### Input Signal Rectification #6

Closed areiter128 closed 5 years ago

areiter128 commented 5 years ago

This feature request is an extension to the Input Signal Offset Compensation feature, where a control bit defined in the status word of the cNPNZ16b_t data object allows users to negate the input data signal. As a result, negative values will be fed as positive numbers into the compensation filter computation.

Example use case:

This feature is required to support bi-directional control systems. Bi-directional converters may have one current sense source where the zero point is offset by a certain voltage. Positive currents are defined as signals above this zero-line and negative currents are defined as signals below the zero line. When using the Input Signal Offset Compensation feature only to account for input data gain correction, this would inevitably result in negative numbers being fed into the inverting control loop, effectively making the control loop non-inverting and therefore nonfunctional.