Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
drv_usersetup_TPBLPFC.h
1
21/*
22 (c) 2020 Microchip Technology Inc. and its subsidiaries. You may use this
23 software and any derivatives exclusively with Microchip products.
24
25 THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
26 EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
27 WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
28 PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
29 WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
30
31 IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
32 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
33 WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
34 BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
35 FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
36 ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
37 THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
38
39 MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE
40 TERMS.
41*/
42
43#ifndef DRV_USERSETUP_TPBLPFC_H
44#define DRV_USERSETUP_TPBLPFC_H
45
46
54//lines above are copied from TextFile1. Is there a way that they are auto generated from melody.
55
56//How to get current datetime??//
57//incomplete -> will try to follow the generated file from the
58
59// Current Sensor: 0.025 V/A
60// Single Phase L1 PFC
61#define HIGH_VOLTAGE 0
63//#define SINGLE_PHASE_L1
64//#undef SINGLE_PHASE_IL_L1_L3
65//#undef THREE_PHASE
66//#define VIN_AC
67//#define VOLTAGE_LOOP
68//#undef GRID_TIED_INVERTER
69//
70//#define RECTIFIER_SWITCH_ENABLED
71//#define CLOSED_LOOP
72//#define DUTY_RATIO_FEEDFORWARD_ENABLED
74//#undef AC_CYCLE_SKIPPING_ENABLED
76//#undef ADAPTIVE_STEPRESPONSE_ENABLED
77//#undef AUTO_START
78//#undef POWERSMART_USAGE
79//#define VOUT_REF 1490// 40V
80//#define IIN_OC 931// 30A
81//#define VOUT_OV 3352// 90V
82//#define CCM_CURRENT 63// 2A
83//#define DEAD_TIME 320// 80ns
84//
86//#define BURST_MODE_VMC_REF_FREEZE 800
87//#define BURST_MODE_LEVEL_HIGH 500
88//#define BURST_MODE_LEVEL_MIDDLE 400
89//#define BURST_MODE_LEVEL_LOW 300
90//#define BURST_MODE_OFF_CYCLES_LEVEL_HIGH 9
91//#define BURST_MODE_OFF_CYCLES_LEVEL_MIDDLE 7
92//#define BURST_MODE_OFF_CYCLES_LEVEL_LOW 5
93//
94//#define VOUT_HYSTERETIC_RAMP_VALUE_LOW 75
95//#define VOUT_HYSTERETIC_RAMP_VALUE_MIDDLE 75
96//#define VOUT_HYSTERETIC_RAMP_VALUE_HIGH 125
97//#define VOUT_HYSTERETIC_VMC_REF_MAX_OFF_CYCLES_LOW 0
98//#define VOUT_HYSTERETIC_VMC_REF_MAX_OFF_CYCLES_MIDDLE 1
99//#define VOUT_HYSTERETIC_VMC_REF_MAX_OFF_CYCLES_HIGH 2
100//
101#define CANSendID 0x202
102#define CANReceiveID 0x203
103
104//following lines are from TextFile2.txt
105
106
114#define PH1_PWM 1
115#define PH2_PWM 2
116#define PH3_PWM 3
117
118//#define VoltageLoopPIM
119
120
128#ifdef THREE_PHASE
129 #define OPEN_LOOP_STARTUP_PULSES 3
130 #define OPEN_LOOP_PWM_COUNTER_SHIFT 11
131#else
132 #define OPEN_LOOP_STARTUP_PULSES 10
133 #define OPEN_LOOP_PWM_COUNTER_SHIFT 11
134#endif
135
136//==============================================================================
137//==============================================================================
138
139#endif /* DRV_USERSETUP_TPBLPFC_H */