Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Adaptive Gain Control Example
v_loop_agc.h
1
/* *********************************************************************************
2
* PowerSmartâ„¢ Digital Control Library Designer, Version 0.9.12.672
3
* *********************************************************************************
4
* 4p4z controller function declarations and compensation filter coefficients
5
* derived for following operating conditions:
6
* *********************************************************************************
7
*
8
* Controller Type: 4P4Z - Advanced High-Q Compensator
9
* Sampling Frequency: 500000 Hz
10
* Fixed Point Format: Q15
11
* Scaling Mode: 3 - Dual Bit-Shift Scaling
12
* Input Gain: 0.5
13
*
14
* *********************************************************************************
15
* CGS Version: 3.0.6
16
* CGS Date: 02/03/2021
17
* *********************************************************************************
18
* User: M91406
19
* Date/Time: 02/24/2021 00:14:41
20
* ********************************************************************************/
21
27
// This is a guard condition so that contents of this file are not included
28
// more than once.
29
#ifndef __SPECIAL_FUNCTION_LAYER_V_LOOP_AGC_H__
30
#define __SPECIAL_FUNCTION_LAYER_V_LOOP_AGC_H__
31
32
#include <xc.h>
// include processor files - each processor file is guarded
33
#include <dsp.h>
// include DSP data types (e.g. fractional)
34
#include <stdint.h>
// include standard integer number data types
35
#include <stdbool.h>
// include standard boolean data types (true/false)
36
37
#include "npnz16b.h"
// include NPNZ library header file
38
39
// ADVANCED CONTROL FUNCTION DECLARATIONS
40
41
71
extern
void
__attribute__((near))v_loop_AGCFactorUpdate(
// Calls the AGC Factor Modulation Observer Function (Assembly)
72
volatile
NPNZ16b_t
* controller
// Pointer to nPnZ data type object
73
);
74
// End of function declaration
76
77
#endif
/* __SPECIAL_FUNCTION_LAYER_V_LOOP_AGC_H__ */
78
NPNZ16b_s
Global NPNZ controller data object.
Definition:
npnz16b.h:502
dpsk_buck_agc.X
sources
power_control
drivers
v_loop_agc.h
© 2021, Microchip Technology Inc.