31#ifndef DRV_USERSETUP_TPBLPFC_H
32#define DRV_USERSETUP_TPBLPFC_H
47#define SYNCHRONOUS_ACTIVE_SWITCH
48#define RECTIFIER_SWITCH
50#if defined MODE_PFC || defined MODE_INTERLEAVED
52 #define DUTY_RATIO_FEEDFORWARD_ENABLED
53 #define AC_CYCLE_SKIPPING_ENABLED
54 #define ADAPTIVE_GAIN_ENABLED
55 #define ADAPTIVE_STEPRESPONSE_ENABLED
72 #define CCM_CURRENT 62
74 #define VOUT_PRECHARGE_VOLTAGE 360
75 #define VOUT_PRECHARGE_VALUE (uint16_t)(VOUT_PRECHARGE_VOLTAGE * 7.88)
80 #define CCM_CURRENT 62
82 #define VOUT_PRECHARGE_VOLTAGE 36
83 #define VOUT_PRECHARGE_VALUE (uint16_t)(VOUT_PRECHARGE_VOLTAGE * 37.23)
87 #define BURST_MODE_VMC_REF_FREEZE 200
88 #define BURST_MODE_LEVEL_HIGH 150
90#ifdef MODE_INTERLEAVED
91 #define BURST_MODE_VMC_REF_FREEZE 950
92 #define BURST_MODE_LEVEL_HIGH 900
94 #define BURST_MODE_VMC_REF_FREEZE 1900
95 #define BURST_MODE_LEVEL_HIGH 1800
101 #define OPEN_LOOP_STARTUP_PULSES 16
102 #define OPEN_LOOP_PWM_COUNTER_SHIFT 10
104 #define OPEN_LOOP_STARTUP_PULSES 10
105 #define OPEN_LOOP_PWM_COUNTER_SHIFT 10
109 #define M_HIGHLINE 0.64
110 #define BX_HIGHLINE 2000
111 #define GAINSLOPE_HIGHLINE (uint16_t)(M_HIGHLINE * 32767)
112 #define GAINOFFSET_HIGHLINE (uint16_t)(0.75 * 32767 + BX_HIGHLINE * M_HIGHLINE)
114 #define M_LOWLINE 0.96
115 #define BX_LOWLINE 1000
116 #define GAINSLOPE_LOWLINE (uint16_t)(M_LOWLINE * 32767)
117 #define GAINOFFSET_LOWLINE (uint16_t)(0.66 * 32767 + BX_LOWLINE * M_LOWLINE)
120#if defined MODE_INTERLEAVED
121 #define M_HIGHLINE 0.64
122 #define BX_HIGHLINE 2000
123 #define GAINSLOPE_HIGHLINE (uint16_t)(M_HIGHLINE * 32767)
124 #define GAINOFFSET_HIGHLINE (uint16_t)(0.75 * 32767 + BX_HIGHLINE * M_HIGHLINE)
126 #define M_LOWLINE 0.96
127 #define BX_LOWLINE 1000
128 #define GAINSLOPE_LOWLINE (uint16_t)(M_LOWLINE * 32767)
129#define GAINOFFSET_LOWLINE (uint16_t)(0.66 * 32767 + BX_LOWLINE * M_LOWLINE)
Allows the user to easily change the operation modes.