Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
main.c
1/*
2© [2024] Microchip Technology Inc. and its subsidiaries.
3
4 Subject to your compliance with these terms, you may use Microchip
5 software and any derivatives exclusively with Microchip products.
6 You are responsible for complying with 3rd party license terms
7 applicable to your use of 3rd party software (including open source
8 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
9 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
10 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
11 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
12 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
13 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
14 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
15 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
16 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
17 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
18 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
19 THIS SOFTWARE.
20*/
21
22#define FCY 100000000UL
23#include <libpic30.h>
24
25#include "mcc_generated_files/system/system.h"
26#include "mcc_generated_files/system/pins.h"
30#include "main.h"
31#include "PFC_frameworkSetup.h"
32
33
46int main(void)
47{
49
51
53
54 //<<START>> Timer 1 for 100us task for state machine
55 TMR1_Start();
56
57 //<<<<<<<< Mode set by "Totempole_Application_Setup.h" file ------------------
58#if defined VOLTAGE_LOOP && !defined MODE_INTERLEAVED
60#endif
61
62#if !defined VOLTAGE_LOOP && !defined MODE_GRID_TIE_INVERTER
64#endif
65
66#if defined MODE_GRID_TIE_INVERTER
68#endif
69
70#if defined MODE_INTERLEAVED
72#endif
73 //<<<<<<<< Mode set END ------------------------------------------------------
74
75 while (1)
76 {
77 //<< end 100us scheduler
78 if (IFS0bits.T1IF)
79 {
80 Tasks_100us();
81
82 IFS0bits.T1IF = 0;
83
84 }
85 }
86}
void Init_pwr_ctrl(void)
PFC_FLAGS_t PFC_Flags
This is the typedef file for power controller.
void Drv_PwrCtrl_TPBLPFC_Init(void)
This is the driver header file for the power controller misc app.
Allows the user to change the advanced operating parameters.
void SYSTEM_Initialize(void)
Initializes the System module.
Definition system.c:51
void TMR1_Start(void)
Starts the timer.
Definition tmr1.c:94
volatile unsigned AC_AVGCM_no_VMC_1_PH_reverse
struct PFC_FLAGS_s::@30::@32 bits
volatile unsigned DC_AVGCM_no_VMC_1_PH
volatile unsigned AC_PFC_1_PH
volatile unsigned AC_PFC_2PH_1_PH
This is the generated driver header file for the TMR1 driver.