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
36
40// IPRI_CT_SNS = IPRI_CT * IPRI_CT_SNS_GAIN + IPRI_CT_SNS_OFS
41// note that the IPRI_CT_SNS is rectified via hardware
42#define IPRI_CT_SNS_GAIN (82.5e-3) // V/A
43#define IPRI_CT_SNS_OFS (0.0) // V
// end of group ~~~~~~~~~~~~~~~~~~~~
45
46
50// ISEC_CT_SNS = ISEC_CT * ISEC_CT_SNS_GAIN + ISEC_CT_SNS_OFS
51// note that the ISEC_CT_SNS is rectified on the power board
52#define ISEC_CT_SNS_GAIN (66.0e-3) // V/A
53#define ISEC_CT_SNS_OFS (0.0) // V
54
55// ISEC_AVG_SNS = ISEC_AVG * ISEC_AVG_SNS_GAIN + ISEC_AVG_SNS_OFS
56#define ISEC_AVG_SNS_GAIN (25.0e-3) // V/A
57#define ISEC_AVG_SNS_OFS (1.65) // V
// end of group ~~~~~~~~~~~~~~~~~~~~
59
60
64// VRAIL_5V_SNS = VRAIL_5V * VRAIL_5V_SNS_GAIN
65#define VRAIL_5V_SNS_GAIN (0.5) // V/V
// end of group ~~~~~~~~~~~~~~~~~~~~
67
68
72#define TEMPERATURE_GAIN (-0.029)
73#define TEMPERATURE_OFFSET 115u
// end of group ~~~~~~~~~~~~~~~~~~~~
75
76#endif /* HARDWARE_H */
77