⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 esp_parameter.h

📁 MSP430 examples or customized
💻 H
字号:
// Created with Excel Table
// Date:  04/22/2005        Time:  08:19:45



#define  V_Gain   SD16GAIN_1
#define  I1_Gain  SD16GAIN_1
#define  I2_Gain  SD16GAIN_1

#define  SHUNT    0
#define  CT       1
#define  ROG_COIL 2
#define  NONE     3

#define      I1SENSOR                      CT
#define      I2SENSOR                      NONE

#define      defVRatio                     12.2133211261158
#define      defIRatio                     3.66216525520714
#define      defEnergyRatio                44.7272002787487

#define      defSET_CALVOLTAGE             240
#define      defSET_CALCURRENT             10
#define      defCalPhi                     -60
#define      defCalCosPhi                  0.5
#define      defCalFreq                    50

// Phase Error Correction:
#define      defSET_PHASECORR1             242
#define      defSET_PHASECORR2             0

#define      PULSE_PER_KWH                 1000
#define      defSET_INTRPTLEVL_REPEAT      77
#define      _defSET_INTRPTLEVL            4281540036

#define      defSET_INTRPTLEVL_LO          (_defSET_INTRPTLEVL & 0xFFFF)
#define      defSET_INTRPTLEVL_HI          ((_defSET_INTRPTLEVL >> 16) & 0xFFFF)


/** Adjustment parameters for the two currents:  */
#define      defSET_ADAPTI1                16384
#define      defSET_ADAPTI2                16384

//   Nominal Mains Frequency:
#define      defSET_NOMFREQ                50


/** Adjustment parameters start up currents: */
/* as Factor of calCurrent */
#ifdef WITH_START_CURRENT
#define      defSET_STARTCURR              (0.004 * defSET_CALCURRENT)
#define      defSET_STARTCURR_INT          (unsigned int)((defSET_STARTCURR * 1000 / defIRatio))
#define      defSET_STARTCURR_FRAC         (unsigned int)((defSET_STARTCURR * POW_2_16 * 1000 / defIRatio) - (POW_2_16 * defSET_STARTCURR_INT))
#else
#define      defSET_STARTCURR              0
#define      defSET_STARTCURR_INT          0
#define      defSET_STARTCURR_FRAC         0
#endif  // WITH_START_CURRENT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -