Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
hardware.h
1
2// This is a guard condition so that contents of this file are not included
3// more than once.
4#ifndef HARDWARE_H
5#define HARDWARE_H
6
7//------------------------------------------------------------------------------
8// hardware constants (voltage & current sense, gains and offsets)
9//------------------------------------------------------------------------------
10
14// VPRI_SNS_GAIN: VPRI_SNS = VPRI * VPRI_SNS_GAIN + VPRI_SNS_OFS
15#if defined (VPRI_OPTOCOUPLER_POLARITY) && (VPRI_OPTOCOUPLER_POLARITY == true)
16 #define VPRI_SNS_GAIN (float)(-3.600e-3) // V/V
17 #define VPRI_SNS_OFS (3.3183) // V
18#else
19 #define VPRI_SNS_GAIN (float)(3.600e-3) // V/V
20 #define VPRI_SNS_OFS (0.0) // V
21#endif
22
23#define VPRI_VOLTAGE_GAIN (float)0.2229
24
// end of group primary-voltage-feedback ~~~~~~~~~~~~~~~~~~~~
26
27
31// VSEC_SNS = VSEC * VSEC_SNS_GAIN
32#define VSEC_SNS_GAIN (3.18e-3) // V/V
// end of group ~~~~~~~~~~~~~~~~~~~~
34
35#define VSEC_VOLTAGE_GAIN (float)0.2534
36
37
38
42// IPRI_CT_SNS = IPRI_CT * IPRI_CT_SNS_GAIN + IPRI_CT_SNS_OFS
43// note that the IPRI_CT_SNS is rectified via hardware
44#define IPRI_CT_SNS_GAIN (82.5e-3) // V/A
45#define IPRI_CT_SNS_OFS (0.0) // V
// end of group ~~~~~~~~~~~~~~~~~~~~
47
48
52// ISEC_CT_SNS = ISEC_CT * ISEC_CT_SNS_GAIN + ISEC_CT_SNS_OFS
53// note that the ISEC_CT_SNS is rectified on the power board
54#define ISEC_CT_SNS_GAIN (66.0e-3) // V/A
55#define ISEC_CT_SNS_OFS (0.0) // V
56
57// ISEC_AVG_SNS = ISEC_AVG * ISEC_AVG_SNS_GAIN + ISEC_AVG_SNS_OFS
58#define ISEC_AVG_SNS_GAIN (25.0e-3) // V/A
59#define ISEC_AVG_SNS_OFS (1.65) // V
// end of group ~~~~~~~~~~~~~~~~~~~~
61
62
66// VRAIL_5V_SNS = VRAIL_5V * VRAIL_5V_SNS_GAIN
67#define VRAIL_5V_SNS_GAIN (0.5) // V/V
// end of group ~~~~~~~~~~~~~~~~~~~~
69
70
74#define TEMPERATURE_GAIN (-0.029)
75#define TEMPERATURE_OFFSET 115u
// end of group ~~~~~~~~~~~~~~~~~~~~
77
78#endif /* HARDWARE_H */
79