Generated by the Microchip Digital Compensator Design Tool (DCDT), contains system summaries and digital compensator coefficients. More...
Go to the source code of this file.
Macros | |
#define | DAB_SPVO_COMP_2P2Z_COEFF_A1 0x0EFA |
#define | DAB_SPVO_COMP_2P2Z_COEFF_A2 0x02AF |
#define | DAB_SPVO_COMP_2P2Z_COEFF_B0 0x7FFC |
#define | DAB_SPVO_COMP_2P2Z_COEFF_B1 0x0199 |
#define | DAB_SPVO_COMP_2P2Z_COEFF_B2 0x819D |
#define | DAB_SPVO_COMP_2P2Z_POSTSCALER 0x73F1 |
#define | DAB_SPVO_COMP_2P2Z_POSTSHIFT 0xFFFD |
#define | DAB_SPVO_COMP_2P2Z_PRESHIFT 0x0000 |
#define | DAB_SPVO_COMP_2P2Z_MIN_CLAMP 0x0000 |
#define | DAB_SPVO_COMP_2P2Z_MAX_CLAMP 0x7FFF |
#define DAB_SPVO_COMP_2P2Z_COEFF_A1 0x0EFA |
Summary: This header file was created using Microchip Digital Compensator Design Tool (DCDT) and includes system summary and digital compensator coefficients. This file should be included in the MPLAB X project directory.
File Name: dab_spvo_dcdt.h Project Name: dab_spvo Date: 2/4/2025 Time: 19:55.01
Software License Agreement
Copyright © 2025 Microchip Technology Inc. All rights reserved. Microchip licenses to you the right to use, modify, copy and distribute Software only when embedded on a Microchip microcontroller or digital signal controller, which is integrated into your product or third party product (pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS. Compensator Type: 2P2Z Entry Value
Pole 0 2.5000e+02 Hz Pole 2 4.3250e+03 Hz Zero 1 2.0000e+01 Hz Gain(Kdc) 1.000 Warp false PWM Frequency 1.0000e+04 PWM Sampling Ratio 1 Sampling Frequency 1.0000e+04 PWM Max Resolution 1.0000e-09 Computational Delay 1.0000e-06 Gate Drive Delay 5.0000e-08 Control Output Min. 0 Control Output Max. 32767 Kuc Gain 1.3386e+02 Use Kuc Gain false
PWM Calculations Name Value
Bits of Resolution 16.610 Gain 1.000e-05
s-domain transfer function
Wp0 Wp2(Wz1 + s)
H(s) = Kdc X — X ---------— s Wz1(Wp2 + s)
1.57e+03 2.72e+04(1.26e+02 + s) H(s) = 1.000 X -----— X -------------------— s 1.26e+02(2.72e+04 + s)
Digital Compensator Coefficients
Name Value Normalized Q15 Hex
a1 0.848 0.117 3834 0x0EFA a2 0.152 0.021 687 0x02AF b0 7.246 1.000 32764 0x7FFC b1 0.090 0.012 409 0x0199 b2 -7.155 -0.987 -32355 0x819D
z-domain transfer function
u(z) B0 + B1z^(-1) + B2z^(-2)
H(z) = — = ---------------------— e(z) A0 - A1z^(-1) - A2z^(-2)
(7.246) + (0.090)z^(-1) + (-7.155)z^(-2) H(z) = ------------------------------------------— 1 - (0.848)z^(-1) - (0.152)z^(-2)
Definition at line 104 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_COEFF_A2 0x02AF |
Definition at line 105 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_COEFF_B0 0x7FFC |
Definition at line 106 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_COEFF_B1 0x0199 |
Definition at line 107 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_COEFF_B2 0x819D |
Definition at line 108 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_MAX_CLAMP 0x7FFF |
Definition at line 116 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_MIN_CLAMP 0x0000 |
Definition at line 115 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_POSTSCALER 0x73F1 |
Definition at line 109 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_POSTSHIFT 0xFFFD |
Definition at line 110 of file dab_spvo_dcdt.h.
#define DAB_SPVO_COMP_2P2Z_PRESHIFT 0x0000 |
Definition at line 111 of file dab_spvo_dcdt.h.