3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
Content
Loading...
Searching...
No Matches
Totempole_Application_Setup.h
Go to the documentation of this file.
1
10
/*
11
� [2024] Microchip Technology Inc. and its subsidiaries.
12
13
Subject to your compliance with these terms, you may use Microchip
14
software and any derivatives exclusively with Microchip products.
15
You are responsible for complying with 3rd party license terms
16
applicable to your use of 3rd party software (including open source
17
software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
18
NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
19
SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
20
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
21
WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
22
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
23
KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
24
MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
25
FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
26
TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
27
EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
28
THIS SOFTWARE.
29
*/
30
31
#ifndef DRV_USERSETUP_TOTEMPOLEAPPLICATION_H
32
#define DRV_USERSETUP_TOTEMPOLEAPPLICATION_H
33
34
#include <xc.h>
35
#include <stdint.h>
36
#include <stdbool.h>
37
#include <dsp.h>
38
39
69
#define HIGH_VOLTAGE 1
70
71
//#define MODE_PFC
72
//#define MODE_GRID_TIE_INVERTER
73
#define MODE_INTERLEAVED
74
75
//==============================================================================
76
77
#ifdef MODE_GRID_TIE_INVERTER
78
#define CANSendID 0x302
79
#define CANReceiveID 0x303
80
#else
81
#define CANSendID 0x202
82
#define CANReceiveID 0x203
83
#endif
84
85
//==============================================================================
86
87
#if defined (MODE_PFC) && defined (MODE_GRID_TIE_INVERTER)
88
#error "MODE SETUP ERROR: #defines in Totempole_Application_Setup.h is wrong"
89
#endif
90
#if defined (MODE_PFC) && defined (MODE_INTERLEAVED)
91
#error "MODE SETUP ERROR: #defines in Totempole_Application_Setup.h is wrong"
92
#endif
93
#if defined (MODE_INTERLEAVED) && defined (MODE_GRID_TIE_INVERTER)
94
#error "MODE SETUP ERROR: #defines in Totempole_Application_Setup.h is wrong"
95
#endif
96
97
//==============================================================================
98
//<<< EXPERTS ONLY
99
111
//#define CURRENT_LOOP_BODE_MEASUREMENT
112
113
//==============================================================================
114
//==============================================================================
115
116
#endif
/* DRV_USERSETUP_TOTEMPOLEAPPLICATION_H */
117
© Copyright 1998-2022 Microchip Technology Inc. All rights reserved.