Go to the documentation of this file.
43 #ifndef INIT_BCKGND_FUNCT_H_
44 #define INIT_BCKGND_FUNCT_H_
62 #define DIV_AUTO_START 0
66 #define UNSIGNED_DIVISION 4
70 #define SIGNED_DIVISION 0
74 #define DIV_32BIT_BY_32BIT 0
78 #define CLK_CORE_HZ 48000000UL
85 #define VIN_MIN_START_INIT 1330 // input voltage before starting the relay (experimental)
87 #define VIN_MIN_START 1121 //1121 --> 86Vrms/3.3Vdd //1094 --> 84Vrms/3.3Vdd // input voltage after starting the relay
89 #define VIN_MIN_STOP_HARD 808 //750 //808 // 847 --> 65Vrms/3.3Vdd; 810, considering filter response
91 #define VIN_MIN_PLD_68V 938 // 938 --> 75Vrms/3.3Vdd
93 #define VIN_MIN_PLD_75V 1068 // 1068 --> 82Vrms/3.3Vdd
101 #define I_IN_AVG_MAX 15887 //15887 --> 20A/3.3Vdd/470R-47R-1
103 #define I_IN_MAX16b 0xFFFFU //0xFFFFU = 65535
105 #define I_IN_FACTOR 2
107 #define I_IN_MAX_FACTOR (I_IN_MAX16b >> I_IN_FACTOR)
116 #define LIMIT_1_MILI_S 65
118 #define LIMIT_100_MILI_S 100
212 extern volatile int32_t
auxAC;
215 extern volatile int32_t
auxDC;