Generated by the Microchip Digital Compensator Design Tool (DCDT), contains system summaries and digital compensator coefficients.
Go to the source code of this file.
Macros | |
#define | ILOOP_T_COMP_3P3Z_COEFF_A1 0x224B |
#define | ILOOP_T_COMP_3P3Z_COEFF_A2 0xFDDE |
#define | ILOOP_T_COMP_3P3Z_COEFF_A3 0xFF45 |
#define | ILOOP_T_COMP_3P3Z_COEFF_B0 0x7FFC |
#define | ILOOP_T_COMP_3P3Z_COEFF_B1 0xBEA9 |
#define | ILOOP_T_COMP_3P3Z_COEFF_B2 0x8702 |
#define | ILOOP_T_COMP_3P3Z_COEFF_B3 0x4855 |
#define | ILOOP_T_COMP_3P3Z_POSTSCALER 0x412A |
#define | ILOOP_T_COMP_3P3Z_POSTSHIFT 0xFFFD |
#define | ILOOP_T_COMP_3P3Z_PRESHIFT 0x0000 |
#define | ILOOP_T_COMP_3P3Z_MIN_CLAMP 0x0000 |
#define | ILOOP_T_COMP_3P3Z_MAX_CLAMP 0x4A38 |
#define ILOOP_T_COMP_3P3Z_COEFF_A1 0x224B |
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: iloop_t_dcdt.h Project Name: iloop33 Date: 2/18/2025 Time: 9:13.38
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: 3P3Z Entry Value
Pole 0 8.0000e+03 Hz Pole 2 2.1000e+04 Hz Pole 3 4.0000e+04 Hz Zero 1 3.0000e+03 Hz Zero 2 6.0000e+03 Hz Gain(Kdc) 1.000 Warp false PWM Frequency 1.0000e+05 PWM Sampling Ratio 1 Sampling Frequency 1.0000e+05 PWM Max Resolution 1.0600e-09 Computational Delay 1.5000e-06 Gate Drive Delay 1.5000e-07 Control Output Min. 0 Control Output Max. 19000 Kuc Gain 7.6025e+00 Use Kuc Gain false
PWM Calculations Name Value
Bits of Resolution 13.204 Gain 1.060e-04
s-domain transfer function
Wp0 Wp2(Wp3)(Wz1 + s)(Wz2 + s)
H(s) = Kdc X — X -----------------------— s Wz1(Wz2)(Wp2 + s)(Wp3 + s)
5.03e+04 1.32e+05(2.51e+05)(1.88e+04 + s)(3.77e+04 + s) H(s) = 1.000 X -----— X -------------------------------------------— s 1.88e+04(3.77e+04)(1.32e+05 + s)(2.51e+05 + s)
Digital Compensator Coefficients
Name Value Normalized Q15 Hex
a1 1.091 0.268 8779 0x224B a2 -0.068 -0.017 -546 0xFDDE a3 -0.023 -0.006 -187 0xFF45 b0 4.072 1.000 32764 0x7FFC b1 -2.079 -0.510 -16727 0xBEA9 b2 -3.850 -0.945 -30974 0x8702 b3 2.302 0.565 18517 0x4855
z-domain transfer function
u(z) B0 + B1z^(-1) + B2z^(-2) + B3z^(-3)
H(z) = — = --------------------------------— e(z) A0 - A1z^(-1) - A2z^(-2) - A3z^(-3)
(4.072) + (-2.079)z^(-1) + (-3.850)z^(-2) + (2.302)z^(-3) H(z) = --------------------------------------------------------— 1 - (1.091)z^(-1) - (-0.068)z^(-2) - (-0.023)z^(-3)
Definition at line 108 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_COEFF_A2 0xFDDE |
Definition at line 109 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_COEFF_A3 0xFF45 |
Definition at line 110 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_COEFF_B0 0x7FFC |
Definition at line 111 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_COEFF_B1 0xBEA9 |
Definition at line 112 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_COEFF_B2 0x8702 |
Definition at line 113 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_COEFF_B3 0x4855 |
Definition at line 114 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_MAX_CLAMP 0x4A38 |
Definition at line 122 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_MIN_CLAMP 0x0000 |
Definition at line 121 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_POSTSCALER 0x412A |
Definition at line 115 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_POSTSHIFT 0xFFFD |
Definition at line 116 of file iloop_t_dcdt.h.
#define ILOOP_T_COMP_3P3Z_PRESHIFT 0x0000 |
Definition at line 117 of file iloop_t_dcdt.h.