亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? emeter.h

?? msp430F437三相電表DEMO(編譯器 IAR 3.42A)
?? H
?? 第 1 頁 / 共 3 頁
字號:
//--------------------------------------------------------------------------
//
//  Software for MSP430 based e-meters.
//
//  THIS PROGRAM IS PROVIDED "AS IS". TI MAKES NO WARRANTIES OR
//  REPRESENTATIONS, EITHER EXPRESS, IMPLIED OR STATUTORY, 
//  INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS 
//  FOR A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR 
//  COMPLETENESS OF RESPONSES, RESULTS AND LACK OF NEGLIGENCE. 
//  TI DISCLAIMS ANY WARRANTY OF TITLE, QUIET ENJOYMENT, QUIET 
//  POSSESSION, AND NON-INFRINGEMENT OF ANY THIRD PARTY 
//  INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE PROGRAM OR 
//  YOUR USE OF THE PROGRAM.
//
//  IN NO EVENT SHALL TI BE LIABLE FOR ANY SPECIAL, INCIDENTAL, 
//  CONSEQUENTIAL OR INDIRECT DAMAGES, HOWEVER CAUSED, ON ANY 
//  THEORY OF LIABILITY AND WHETHER OR NOT TI HAS BEEN ADVISED 
//  OF THE POSSIBILITY OF SUCH DAMAGES, ARISING IN ANY WAY OUT 
//  OF THIS AGREEMENT, THE PROGRAM, OR YOUR USE OF THE PROGRAM. 
//  EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF 
//  REMOVAL OR REINSTALLATION, COMPUTER TIME, LABOR COSTS, LOSS 
//  OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR LOSS OF 
//  USE OR INTERRUPTION OF BUSINESS. IN NO EVENT WILL TI'S 
//  AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF 
//  YOUR USE OF THE PROGRAM EXCEED FIVE HUNDRED DOLLARS 
//  (U.S.$500).
//
//  Unless otherwise stated, the Program written and copyrighted 
//  by Texas Instruments is distributed as "freeware".  You may, 
//  only under TI's copyright in the Program, use and modify the 
//  Program without any charge or restriction.  You may 
//  distribute to third parties, provided that you transfer a 
//  copy of this license to the third party and the third party 
//  agrees to these terms by its first use of the Program. You 
//  must reproduce the copyright notice and any other legend of 
//  ownership on each copy or partial copy, of the Program.
//
//  You acknowledge and agree that the Program contains 
//  copyrighted material, trade secrets and other TI proprietary 
//  information and is protected by copyright laws, 
//  international copyright treaties, and trade secret laws, as 
//  well as other intellectual property laws.  To protect TI's 
//  rights in the Program, you agree not to decompile, reverse 
//  engineer, disassemble or otherwise translate any object code 
//  versions of the Program to a human-readable form.  You agree 
//  that in no event will you alter, remove or destroy any 
//  copyright notice included in the Program.  TI reserves all 
//  rights not specifically granted under this license. Except 
//  as specifically provided herein, nothing in this agreement 
//  shall be construed as conferring by implication, estoppel, 
//  or otherwise, upon you, any license or other right under any 
//  TI patents, copyrights or trade secrets.
//
//  You may not use the Program in non-TI devices.
//
//  File: emeter-3ph-a.h
//  Star's 3-phase meter with custom LCD
//
//  Steve Underwood <steve-underwood@ti.com>
//  Texas Instruments Hong Kong Ltd.
//
//  $Id: emeter-3ph-star.h,v 1.1.1.1 2004/04/06 03:28:17 A0754793 Exp $
//
//--------------------------------------------------------------------------

/* This is a demonstration version of the configuration data file for the
   MSP430 e-meter reference software. For most users, this file will need
   to be edited to match the hardware being used. */

/* N.B.
   This e-meter software uses a sampling rate of 3276.8/s. For a
   mains supply at exactly 50Hz, each sample is 5.49degrees of
   phase from the last. */

/*! This switch, in combination with the calibrator switch, enables calibration
    with the meter cooperating with an external reference, through a UART port. */
#define SERIAL_CALIBRATION_SUPPORT
#define SERIAL_CALIBRATION_PASSWORD_1               0x1234
#define SERIAL_CALIBRATION_PASSWORD_2               0x5678
#define SERIAL_CALIBRATION_PASSWORD_3               0x9ABC
#define SERIAL_CALIBRATION_PASSWORD_4               0xDEF0

/*! This switch enables the sending of the current readings, through a UART port,
    for use in cooperative calibration with other meters. */
#define SERIAL_CALIBRATION_REF_SUPPORT

/*! This switch selects single phase mode. If SINGLE_PHASE is not set the
    software will be built for 3-phase operation. */
#undef SINGLE_PHASE

/*! This switch enables mains frequency measurement. This may be used as a
    meter feature. It may be a requirement, if non-linear CT sensors are used. */
#undef MAINS_FREQUENCY_SUPPORT

/*! The nominal mains frequency is used to prime the mains frequency measurement,
    and make its initial value settle quickly. It is not currently used after
    reset. */
#define MAINS_NOMINAL_FREQUENCY                     50

/*! This sets the number of pulses per kilo-watt hour the meter will produce at
    its total energy pulse LED. It does not affect the energy accumulation process. */
#define TOTAL_ENERGY_PULSES_PER_KW_HOUR             1600

/*! This sets the number of pulses per kilo-watt hour the meter will produce at
    each phase's energy pulse LED. It does not affect the energy accumulation
    process. */
#define PHASE_ENERGY_PULSES_PER_KW_HOUR             1600

/*! This switch inhibits the accumulation of per phase negative power */
#undef INHIBIT_NEGATIVE_PHASE_POWER_ACCUMULATION

/*! This switch inhibits the accumulation of total negative power */
#undef INHIBIT_NEGATIVE_TOTAL_POWER_ACCUMULATION

/*! This is called after the meter has been initialised, and before interrupts are
    enabled for the first time. This is just before the meter enters power
    down mode waiting for the first power good indication. It may be used to implement
    customised initialisation of the meter's special features. */
#define custom_initialisation()                     /**/

/*! This is called just before the meter enters the power fail state. Since the power is
    failing when this is called, the custom routine should not take an extremely long time to
    execute. The maximum safe time, before energy is drawn from the battery, will depend on the
    hardware design, and how quickly the reservoir capacitor may deplete. There should be
    plenty of time to do things like saving essential usage information to EEPROM. */
#define custom_power_fail_handler()                 /**/

/*! This is called when the meter wakes from the power fail state. It is called after the
    main meter functions have all been restarted. */
#define custom_power_restore_handler()              /**/

/*! This is called to start some customer specific energy pulse operation. For example,
    turning on some special indicator device. */
#define custom_energy_pulse_start()                 /**/

/*! This is called to end some customer specific energy pulse operation. For example,
    turning off some special indicator device. */
#define custom_energy_pulse_end()                   /**/

/*! The duration of the LED on time for an energy pulse. This is measured in
    ADC samples (i.e. increments 1/3276.8s). The maximum allowed is 255, giving a
    pulse of about 78ms. 163 gives a 50ms pulse. */
#define ENERGY_PULSE_DURATION                       163

/*! Tiny power levels should not record at all, as they may just be rounding errors,
    noise, or the consumption of the meter itself. This value is the cutoff level,
    in 0.01W increments. */
#define RESIDUAL_POWER_CUTOFF                       250

/*! This switch enables monitoring of the neutral lead for anti-fraud purposes. */
#undef NEUTRAL_MONITOR_SUPPORT

/*! This is a shift value for comparing currents or powers when looking for
    imbalance between live and neutral. 3 give 12.5%. 4 give 6.25%. These are the
    two commonest values to use. The relaxed version is used at low power levels,
    where the values are less accurate, and a tight imbalance check might give false
    results. */
#define PERMITTED_IMBALANCE_FRACTION                4

/*! This is a relaxed version of the permitted imbalance fraction, for use at low
    powers/currents, where the power (and hence imbalance) measurement may be less
    precise. The tighter imbalance measurement may give false results under high
    EMI conditions. */
#define RELAXED_IMBALANCE_FRACTION                  2

/*! This definition specifies the port bit change required to turn on the
    normal operation indicator LED, when one is used. If this is defined,
    clr_normal_indicator() should also be defined. The normal operation LED will be
    lit when the mains voltage is normal. In limp mode, or power down mode,
    it is switched off. */
#define set_normal_indicator()                      /**/

/*! This definition specifies the port bit change required to turn off the
    normal operation indicator LED, when one is used.  If this is defined,
    set_normal_indicator() should also be defined. */
#define clr_normal_indicator()                      /**/

/*! This definition specifies the port bit change required to turn on the
    earthed condition indicator LED, when one is used. If this is defined,
    clr_earthed_indicator() should also be defined. The earthed LED will be lit when
    there is a substantial imbalance in power (normal operating mode) or
    current (limp mode) between the live and neutral leads. If the neutral
    has the higher reading, this will also be used instead of the live reading. */
#define set_earthed_indicator()                     /**/

/*! This definition specifies the port bit change required to turn off the
    earthed condition indicator LED, when one is used. If this is defined,
    set_earthed_indicator() should also be defined. */
#define clr_earthed_indicator()                     /**/

#if defined(__MSP430__)
/*! This is called to turn on a total energy pulse indicator (e.g. LED or LCD segment) */
#define set_total_energy_pulse_indicator()          (P3OUT &= ~BIT6)

/*! This is called to turn off a total energy pulse indicator (e.g. LED or LCD segment) */
#define clr_total_energy_pulse_indicator()          (P3OUT |= BIT6)

/*! This is called to turn on a total reactive energy pulse indicator (e.g. LED or LCD segment) */
#define set_total_reactive_energy_pulse_indicator() (P3OUT &= ~BIT7)

/*! This is called to turn off a total reactive energy pulse indicator (e.g. LED or LCD segment) */
#define clr_total_reactive_energy_pulse_indicator() (P3OUT |= BIT7)
#endif

/*! This is the number of successive measurement blocks which must agree the
    unbalanced status has changed before we accept it. */
#define PHASE_UNBALANCED_PERSISTENCE_CHECK          5

/*! This enables monitoring of the balance between the current in the live and neutral
    leads, for tamper detection. */
#define POWER_BALANCE_DETECTION_SUPPORT

/*! This is the minimum current level (limp mode) and minimum power level (normal
    mode) at which we will make checks for the earthed condition. Very small
    readings lack the accuracy and resolution needed to make meaningfulF comparisons
    between live and neutral. */
#define PHASE_UNBALANCED_THRESHOLD_CURRENT          500
#define PHASE_UNBALANCED_THRESHOLD_POWER            2000

/*! This selects the operation from current only, when only one lead is
    functioning, and the meter is powered by a parasitic CT supply attached to
    the leads. This is for anti-fraud purposes. Energy is accumulated at the
    highest possible rate, assuming unity power factor, and the nominal voltage */
#undef LIMP_MODE_SUPPORT

/*! If limp mode is supported, these set the voltage thresholds for switching
    bewteen normal mode and limp mode. */
//#define LIMP_MODE_VOLTAGE_THRESHOLD                 50
//#define NORMAL_MODE_VOLTAGE_THRESHOLD               80

/*! If limp mode is supported, this sets the threshold current, in mA, below which we
    no not operate. */
//#define LIMP_MODE_MINIMUM_CURRENT                   800

/*! This selects the nominal voltage used for power calculations in limp mode */
#define MAINS_NOMINAL_VOLTAGE                       230

/*! This selects support for measuring the RMS voltage. */
#undef VRMS_SUPPORT

/*! This selects support for measuring the RMS current. */
#undef IRMS_SUPPORT

/*! This selects support for reactive power measurement. */
#undef REACTIVE_POWER_SUPPORT

/*! This selects support for reactive power measurement through quadrature processing.
    This is only effective when REACTIVE_POWER_SUPPORT is enabled. */
#undef REACTIVE_POWER_BY_QUADRATURE_SUPPORT

/*! The selects support for apparent or VA power measurement. */
#undef VA_POWER_SUPPORT

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩亚洲国产中文字幕欧美| 成人国产免费视频| 欧美一区二区视频观看视频 | 久久精品一区二区三区av| 国产中文字幕一区| 国产精品久久久久久久久快鸭| 91亚洲国产成人精品一区二区三| 亚洲激情图片一区| 欧美高清性hdvideosex| 国产一区日韩二区欧美三区| 国产精品欧美久久久久一区二区| 94-欧美-setu| 美女视频免费一区| 中文成人av在线| 欧美色图片你懂的| 国产精品一区二区三区乱码| 亚洲免费在线视频一区 二区| 欧美日韩一区二区三区视频| 激情成人综合网| 中文字幕日韩一区二区| 欧美日韩国产美| 国产精品一区二区久久精品爱涩| 亚洲精品水蜜桃| 欧美videos中文字幕| av不卡一区二区三区| 蜜桃久久久久久久| 亚洲裸体xxx| 精品国产免费人成在线观看| 日本二三区不卡| 国产经典欧美精品| 午夜精品久久久久久久蜜桃app| 久久午夜电影网| 欧美亚洲自拍偷拍| 成人美女视频在线看| 蜜臀av国产精品久久久久| 亚洲欧美日韩电影| 久久久精品国产免大香伊| 欧美日本视频在线| 91亚洲资源网| 丁香亚洲综合激情啪啪综合| 日韩精品国产精品| 亚洲欧美日韩中文字幕一区二区三区 | 国产高清在线观看免费不卡| 亚洲丰满少妇videoshd| 国产精品乱人伦| 欧美成人一区二区| 欧美午夜一区二区三区| 99精品久久只有精品| 国产在线精品不卡| 美女免费视频一区二区| 亚洲大尺度视频在线观看| 亚洲人123区| 国产欧美日韩在线观看| 精品国产a毛片| 欧美大尺度电影在线| 精品污污网站免费看| 色婷婷综合激情| 99精品久久免费看蜜臀剧情介绍| 国产九色sp调教91| 国产在线精品视频| 激情综合色综合久久综合| 日本不卡一区二区| 午夜精品视频一区| 午夜精品123| 亚洲国产视频网站| 亚洲福利国产精品| 亚洲成人一区二区| 婷婷成人激情在线网| 午夜天堂影视香蕉久久| 亚洲va韩国va欧美va精品| 亚洲成在人线免费| 天天综合天天做天天综合| 亚洲第一福利一区| 三级在线观看一区二区| 免费在线看一区| 久久精品国产久精国产爱| 麻豆国产精品官网| 国产一区二区调教| 国产不卡高清在线观看视频| 成人不卡免费av| 91视频xxxx| 欧美亚洲一区二区在线观看| 欧美日韩国产精选| 日韩一级高清毛片| 久久精品在线免费观看| 中文字幕+乱码+中文字幕一区| 国产婷婷色一区二区三区四区 | 91久久人澡人人添人人爽欧美| 日本精品一区二区三区高清 | 亚洲国产高清在线观看视频| 国产精品久久久久久亚洲伦| 亚洲视频免费在线观看| 午夜精品一区二区三区电影天堂 | 亚洲国产成人精品视频| 美国一区二区三区在线播放| 国产乱人伦精品一区二区在线观看| 国产呦萝稀缺另类资源| 99热在这里有精品免费| 欧美怡红院视频| 26uuu久久综合| 国产精品国产自产拍高清av王其 | 国产自产视频一区二区三区| 国产盗摄一区二区| 91女厕偷拍女厕偷拍高清| 欧美精品久久天天躁| 久久精品亚洲乱码伦伦中文| 亚洲精品国产视频| 极品美女销魂一区二区三区免费| 成人午夜私人影院| 欧美日本一区二区在线观看| 久久久不卡网国产精品二区| 樱桃视频在线观看一区| 激情丁香综合五月| 色国产综合视频| 久久久久久久综合色一本| 依依成人综合视频| 九色porny丨国产精品| 97久久超碰精品国产| 欧美一区二区二区| 亚洲视频在线观看三级| 美国欧美日韩国产在线播放 | 欧美日韩你懂得| 欧美国产精品一区二区| 午夜视黄欧洲亚洲| 高清av一区二区| 日韩女优av电影| 亚洲国产精品久久人人爱| 国产成人av影院| 欧美一卡2卡3卡4卡| 一区二区三区在线视频免费观看| 国产精品一二三四五| 日韩免费看的电影| 亚洲一级在线观看| 不卡的av在线播放| 久久伊人蜜桃av一区二区| 天天射综合影视| 日本丰满少妇一区二区三区| 欧美激情一区二区三区不卡| 精品一区精品二区高清| 欧美二区三区的天堂| 亚洲天堂久久久久久久| 国产成人av一区二区三区在线观看| 欧美一级精品大片| 视频一区国产视频| 欧美性生交片4| 亚洲美女一区二区三区| 成人精品gif动图一区| 国产色一区二区| 国产美女精品在线| 久久综合给合久久狠狠狠97色69| 奇米精品一区二区三区四区 | 51精品国自产在线| 亚洲成人先锋电影| 欧美日韩国产片| 午夜精品久久久久久不卡8050| 91黄视频在线观看| 亚洲美女偷拍久久| 日本丶国产丶欧美色综合| 亚洲免费av高清| 色婷婷av一区二区三区gif | 午夜精品免费在线| 欧美欧美欧美欧美首页| 性欧美大战久久久久久久久| 欧美在线观看一区二区| 亚洲国产视频a| 欧美剧情片在线观看| 日韩精品亚洲一区| 日韩免费成人网| 韩国精品免费视频| 国产亚洲精品资源在线26u| 国产91高潮流白浆在线麻豆 | 日韩片之四级片| 麻豆专区一区二区三区四区五区| 日韩三级免费观看| 韩日av一区二区| 欧美国产精品专区| 91美女片黄在线观看| 亚洲一区二区三区国产| 欧美一区二区视频观看视频 | 99热这里都是精品| 一区二区三区中文字幕精品精品| 欧美三级资源在线| 麻豆精品精品国产自在97香蕉| 久久人人97超碰com| 岛国av在线一区| 一区二区三区四区蜜桃| 91麻豆精品91久久久久久清纯| 免费xxxx性欧美18vr| 国产女人aaa级久久久级| 色综合久久久网| 欧美a级理论片| 欧美国产日本韩| 欧美日韩亚州综合| 国产麻豆精品在线观看| 一区二区三区在线看| 日韩精品一区国产麻豆| 成人av网站免费观看| 亚洲超丰满肉感bbw| 久久久不卡影院| 欧美午夜精品久久久久久超碰|