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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? emeter.h

?? msp430F437三相電表DEMO(編譯器 IAR 3.42A)
?? H
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
    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()                     /**/

/*! 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

/*! These 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 detection of the reversed power condition. */
#define PHASE_REVERSED_DETECTION_SUPPORT

/*! This selects that the reversed power condition is to be treated as tampering. */
#define PHASE_REVERSED_IS_TAMPERING

/*! This definition specifies the port bit change required to turn on the
    reverse condition indicator LED, when one is used. If this is defined,
    clr_reverse_current_indicator() should also be defined. The reversed LED will be lit
    in normal operating mode, if the raw power reading is negative in the live
    lead (without neutral lead monitoring) or in either of the leads (with
    neutral lead monitoring). The power value used is simply minus the actual
    reading. This only functions in the normal operating mode. In limp mode we
    have no simple way to tell forward current flow from reverse. In limp mode
    the LED is switched off. Note that if the meter is used in applications
    means we are actively feeding power to the public grid this functionality
    is inappropriate. In those cases the negative power would generally be used
    to accumulate a separate "generated energy" reading, to complement the usual
    "consumed energy" reading. */
#define set_reverse_current_indicator()             /**/

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

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

/*! This is the minimum power level at which we will make checks for the reverse
    condition. Very small readings are not a reliable indicator, due to noise. */
#define PHASE_REVERSED_THRESHOLD_POWER              2000

#endif

/*! Some customers expect a meter to count pulses from the time the mains power
    is restored, looosing any fractional count of an LED pulse. This looses the
    power company a fraction of a pulse of revenue, and means the meter is not
    doing the best it can. In the end, we just do what the customer wants. */
#define LOSE_FRACTIONAL_PULSE_AT_POWER_ON

/*! Target specific definitions for the analogue I/O pins */
#define VOLTAGE_INPUT_1                             INCH_3
#define VOLTAGE_INPUT_2                             INCH_4
#define VOLTAGE_INPUT_3                             INCH_5
#define LIVE_HIGH_CURRENT_INPUT_1                   INCH_0
#define LIVE_HIGH_CURRENT_INPUT_2                   INCH_1
#define LIVE_HIGH_CURRENT_INPUT_3                   INCH_2
#define LIVE_LOW_CURRENT_INPUT_1                    INCH_6
#define LIVE_LOW_CURRENT_INPUT_2                    INCH_8
#define LIVE_LOW_CURRENT_INPUT_3                    INCH_9
#define NEUTRAL_CURRENT_INPUT                       INCH_7
#define AGND_INPUT                                  INCH_7

#define DEFAULT_TEMPERATURE_OFFSET                  (1615*8)
#define DEFAULT_TEMPERATURE_SCALING                 (704*2)

#define DEFAULT_ROOM_TEMPERATURE                    250

#define DEFAULT_V_RMS_SCALE_FACTOR                  18034
//#define DEFAULT_V_RMS_LIMP_SCALE_FACTOR             21280
#define DEFAULT_I_RMS_SCALE_FACTOR                  3659
//#define DEFAULT_I_RMS_LIMP_SCALE_FACTOR             4360
#define DEFAULT_P_SCALE_FACTOR_A_LOW                1039 //1617  //978
#define DEFAULT_P_SCALE_FACTOR_A_HIGH               15663 //24330 //10710
#define DEFAULT_P_SCALE_FACTOR_B_LOW                1075 //1617  //978
#define DEFAULT_P_SCALE_FACTOR_B_HIGH               16074 //24330 //10710
#define DEFAULT_P_SCALE_FACTOR_C_LOW                1083 //1617  //978
#define DEFAULT_P_SCALE_FACTOR_C_HIGH               16271 //24330 //10710

#define DEFAULT_NEUTRAL_I_RMS_SCALE_FACTOR          4905
//#define DEFAULT_NEUTRAL_I_RMS_LIMP_SCALE_FACTOR     4360
#define DEFAULT_NEUTRAL_P_SCALE_FACTOR              6210

#define DEFAULT_FREQUENCY_PHASE_FACTOR              500
#define DEFAULT_FREQUENCY_GAIN_FACTOR               0

#define DEFAULT_BASE_PHASE_A_CORRECTION_LOW         -2
#define DEFAULT_BASE_PHASE_A_CORRECTION_HIGH        5
#define DEFAULT_BASE_PHASE_B_CORRECTION_LOW         -2
#define DEFAULT_BASE_PHASE_B_CORRECTION_HIGH        5
#define DEFAULT_BASE_PHASE_C_CORRECTION_LOW         -2
#define DEFAULT_BASE_PHASE_C_CORRECTION_HIGH        5
#define DEFAULT_NEUTRAL_BASE_PHASE_CORRECTION       73

#define DEFAULT_PHASE_CORRECTION1                   0
#define DEFAULT_GAIN_CORRECTION1                    0
#define DEFAULT_PHASE_CORRECTION2                   0
#define DEFAULT_GAIN_CORRECTION2                    0

#define custom_set_consumption(x,y)                 /**/
#define custom_magnetic_sensor_test()               /**/

/*! This is called every ADC interrupt, after the main DSP work has finished.
    It can be used for things like custom keypad operations. It is important
    this is a very short routine, as it is called from the main ADC interrupt. */
#define custom_adc_interrupt()                      /**/

/*! This is called at intervals, to allow integration of RF protocols for AMR. */
#define custom_rf_sniffer()                         /**/

/*! This is called at intervals, to allow integration of RF protocols for AMR. */
#define custom_rf_exchange()                        /**/

#define custom_rtc()                        /* not used */
#define custom_rtc_set()                    /* not used */
#define custom_rtc_retrieve(x)              /* not used */
#define custom_energy_pulse()               /* not used */
#define custom_keypad_handler()             /* not used */
#define custom_mainloop_handler()           /* not used */
#define custom_power_fail_handler()         /* not used */
#define custom_power_restore_handler()      /* not used */

#include "lierda_lcd.h"

/* LCD display parameters */

#define TWO_LINE_LCD

#define LCD_CELLS               8
#define LCD_POS_BASE            1
#define LCD_POS_STEP            1
//typedef uint8_t lcd_cell_t;

#define ICON_PHASE_A            ((5<<5) | 0)
#define ICON_PHASE_B            ((6<<5) | 0)
#define ICON_PHASE_C            ((4<<5) | 0)

#define ICON_A                  ((7<<5) | 8)
#define ICON_V                  ((7<<5) | 17)
#define ICON_kW                 ((7<<5) | 12)
#define ICON_H                  ((7<<5) | 10)

#define ICON_DECIMAL_2          ((7<<5) | 4)
#define ICON_DECIMAL_4          ((7<<5) | 2)

//#define ICON_BATTERY            ((7<<5) | 5)

#define ICON_TIME_COLON_1       ((7<<5) | 13)
#define ICON_TIME_COLON_2       ((7<<5) | 11)

#define ICON_DATE_COLON_1       ((7<<5) | 4)
#define ICON_DATE_COLON_2       ((7<<5) | 2)

#define FIRST_ROW_START             10
#define FIRST_ROW_CHARS             8
#define SECOND_ROW_START            1
#define SECOND_ROW_CHARS            8

#define FIRST_POSITION              1
#define YEAR_POSITION               1
#define MONTH_POSITION              3
#define DAY_POSITION                5
#define HOUR_POSITION               10
#define MINUTE_POSITION             12
#define SECONDS_POSITION            14
#define NUMBER_WIDTH                6

#define FIRST_POWER_POSITION            10
#define FIRST_VOLTAGE_POSITION          10
#define FIRST_POWER_FACTOR_POSITION     10
#define FIRST_VA_POWER_POSITION         10
#define FIRST_TEMPERATURE_POSITION      10

#define FIRST_REACTIVE_POWER_POSITION   1
#define FIRST_CURRENT_POSITION          1
#define FIRST_FREQUENCY_POSITION        1
#define FIRST_ENERGY_POSITION           1

#define DISPLAY_TYPE_POSITION       10

#define FREQUENCY_RESOLUTION    2
#define ICON_DECIMAL_FREQUENCY  ICON_DECIMAL_2
#define VOLTAGE_RESOLUTION      2
#define ICON_DECIMAL_VOLTAGE    ICON_DECIMAL_2
#define CURRENT_DISPLAY_DIVISOR 10
#define CURRENT_RESOLUTION      2
#define ICON_DECIMAL_CURRENT    ICON_DECIMAL_2
#define POWER_RESOLUTION        2
#define ICON_DECIMAL_POWER      ICON_DECIMAL_2
#define ENERGY_RESOLUTION       2
#define ICON_DECIMAL_ENERGY     ICON_DECIMAL_2

#define TEXT_MESSAGE_LENGTH     6

#define USE_WATCHDOG            1

#define P1DIR_INIT              (BIT7 | BIT6 | BIT4 | BIT3 | BIT0)
#define P1SEL_INIT              0
#define P1OUT_INIT              0

#define P2DIR_INIT              (BIT7 | BIT6 | BIT4 | BIT3 | BIT1 | BIT0)
#define P2SEL_INIT              (BIT5 | BIT4)
#define P2OUT_INIT              0

#define P3DIR_INIT              (BIT7 | BIT6 | BIT2 | BIT1 | BIT0)
#define P3SEL_INIT              0
#define P3OUT_INIT              (BIT2 | BIT1 | BIT0)

#define P4DIR_INIT              0
#define P4SEL_INIT              0 //(BIT1 | BIT0)   /* USART1 */
#define P4OUT_INIT              0

#define P5DIR_INIT              0
#define P5SEL_INIT              (BIT7 | BIT6 | BIT5 | BIT4 | BIT3 | BIT2)    /* LCD divider chain and COM segments */
#define P5OUT_INIT              BIT7

#define P6DIR_INIT              0
#define P6SEL_INIT              (BIT7 | BIT6 | BIT5 | BIT4 | BIT3 | BIT2 | BIT1 | BIT0)
#define P6OUT_INIT              0

/* Full 160 segment display */
#define LCD_INIT                (LCDSG0_7 | LCD4MUX | LCDON)

#define GAIN_STAGES             2
#define NEUTRAL_GAIN_STAGES     1

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文欧美字幕免费| 最新国产精品久久精品| 夜夜精品视频一区二区 | 欧美猛男男办公室激情| 亚洲激情图片一区| 欧美日本一区二区三区四区| 日本美女一区二区| 久久人人爽爽爽人久久久| 成人午夜在线免费| 亚洲日本在线看| 在线成人av网站| 麻豆91小视频| 中文天堂在线一区| 欧美日本乱大交xxxxx| 久久不见久久见免费视频1| 欧美激情一区二区三区| 在线观看亚洲一区| 久久se精品一区二区| 国产精品伦理在线| 欧美精品 日韩| 国产馆精品极品| 亚洲国产精品一区二区www| 日韩欧美国产一区二区三区| 丁香婷婷综合网| 亚洲成人中文在线| 久久精品一区四区| 91久久一区二区| 国产一区美女在线| 亚洲国产精品视频| 中文文精品字幕一区二区| 欧美日韩国产综合一区二区| 国内外精品视频| 亚洲国产cao| 国产精品水嫩水嫩| 日韩欧美高清在线| 日本精品一区二区三区四区的功能| 免费观看91视频大全| 亚洲欧洲精品一区二区三区| 欧美一区二区三区成人| 99综合电影在线视频| 精品在线一区二区| 亚洲大型综合色站| 最新日韩av在线| 国产亚洲欧美在线| 日韩免费观看高清完整版| 91成人网在线| 91香蕉视频在线| 国产高清亚洲一区| 日本亚洲免费观看| 午夜视黄欧洲亚洲| 亚洲黄色尤物视频| 国产精品久久久久永久免费观看 | 欧美日韩亚洲丝袜制服| 成人一二三区视频| 久色婷婷小香蕉久久| 一区二区三区高清| 亚洲天堂精品视频| 国产精品久久久久永久免费观看| 亚洲精品在线观看网站| 欧美一级高清大全免费观看| 欧美色网站导航| 色av一区二区| 一本大道久久a久久精二百 | 91在线你懂得| 成人丝袜视频网| 国产麻豆精品一区二区| 国精产品一区一区三区mba视频 | 久久久久久久久久久黄色| 91精品国产一区二区三区| 欧美日韩国产美| 欧美日韩精品一区二区三区四区| 91丝袜呻吟高潮美腿白嫩在线观看| 国产99久久久国产精品潘金网站| 国产高清在线精品| 国产91精品一区二区| 成人中文字幕在线| 99久久99久久精品免费看蜜桃| 国产一区二区三区久久悠悠色av| 国产乱国产乱300精品| 国产在线播放一区| 国产精品亚洲成人| 国产91清纯白嫩初高中在线观看| 国产成人精品三级麻豆| 丁香另类激情小说| 91免费观看视频| 欧美私人免费视频| 欧美一级欧美三级在线观看| 欧美一级专区免费大片| 久久久精品黄色| 国产亚洲精品bt天堂精选| 中文字幕高清一区| 亚洲一区二区在线播放相泽| 午夜精品久久久久久| 久久国产尿小便嘘嘘尿| 国产成人综合精品三级| 99re8在线精品视频免费播放| 91捆绑美女网站| 欧美日韩二区三区| 2020国产精品自拍| 亚洲欧洲av色图| 夜色激情一区二区| 精品一区二区三区香蕉蜜桃| 国产成人在线视频免费播放| 一本色道久久综合亚洲91| 欧美高清dvd| 国产农村妇女精品| 亚洲激情综合网| 美女视频一区二区| www.亚洲人| 91精品欧美综合在线观看最新| 久久伊人中文字幕| 亚洲综合色在线| 91精品福利在线| 精品久久久影院| 一区2区3区在线看| 国产二区国产一区在线观看| 在线观看网站黄不卡| 精品国产免费一区二区三区四区 | 日韩黄色免费电影| 高清久久久久久| 欧美精品久久久久久久久老牛影院| 久久一区二区视频| 亚洲不卡在线观看| 成人免费视频一区| 欧美电影免费观看高清完整版在| 国产精品久久久久久久久快鸭| 日本特黄久久久高潮| 成人av小说网| 精品日本一线二线三线不卡| 日韩一区日韩二区| 国产一区在线不卡| 91精品一区二区三区久久久久久| 国产精品色在线| 精品一二三四区| 欧美日韩久久久| 亚洲另类在线视频| av一区二区不卡| 26uuu亚洲婷婷狠狠天堂| 亚洲成人自拍网| 日本久久电影网| 中文幕一区二区三区久久蜜桃| 免费成人在线播放| 欧美高清你懂得| 亚洲国产乱码最新视频| 99久久伊人精品| 欧美国产一区视频在线观看| 麻豆久久久久久| 777精品伊人久久久久大香线蕉| 亚洲同性同志一二三专区| 国产成人精品在线看| 一区二区三区精品视频| av电影一区二区| 国产精品午夜春色av| 国产91在线观看| 久久精品无码一区二区三区| 久久精品国产**网站演员| 91麻豆精品国产自产在线观看一区 | 极品美女销魂一区二区三区免费| 91精品国产综合久久婷婷香蕉 | 中文字幕在线不卡| 成人中文字幕合集| 国产精品污www在线观看| 国产成a人亚洲精| 欧美国产日韩亚洲一区| 成人午夜精品一区二区三区| 国产亚洲婷婷免费| 粉嫩在线一区二区三区视频| 日本一区二区三区国色天香| 夫妻av一区二区| 综合久久综合久久| 色噜噜狠狠成人中文综合| 亚洲精品亚洲人成人网在线播放| 91蝌蚪porny成人天涯| 一区二区三区电影在线播| 欧美四级电影网| 蜜臂av日日欢夜夜爽一区| 精品久久久久久久久久久院品网| 久久精品国产99国产| 日本一区二区三区免费乱视频 | 911精品产国品一二三产区| 石原莉奈在线亚洲三区| 日韩一级二级三级精品视频| 韩国女主播成人在线| 国产精品网曝门| 在线亚洲免费视频| 免费久久99精品国产| 国产日本欧美一区二区| 99国产精品久久久久| 亚洲一区二区视频在线观看| 日韩一区二区三区视频在线 | 国产精品一品二品| 自拍偷拍亚洲欧美日韩| 欧美精品一卡两卡| 久久爱www久久做| 国产精品大尺度| 欧美精品一卡两卡| 成人综合在线视频| 无码av中文一区二区三区桃花岛| 日韩视频中午一区| 成人ar影院免费观看视频|