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

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

?? emeter.h

?? msp430F437三相電表DEMO(編譯器 IAR 3.42A)
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*! This switch enables support for power factor measurement. This feature
    includes a lead/lag assessment. A frequency independant method, based
    on the ratio of scalar dot products, is used. */
#undef POWER_FACTOR_SUPPORT

/*! This switch selects support for measuring the total active energy consumption. */
#define TOTAL_ENERGY_SUPPORT

/*! This switch selects support for measuring the active energy consumption on a phase
    by phase basis. This is only significant for poly-phase meters. */
#define PER_PHASE_ENERGY_SUPPORT

#define set_phase_1_energy_pulse_indicator()        (P3OUT &= ~BIT0)
#define set_phase_2_energy_pulse_indicator()        (P3OUT &= ~BIT1)
#define set_phase_3_energy_pulse_indicator()        (P3OUT &= ~BIT2)
#define clr_phase_1_energy_pulse_indicator()        (P3OUT |= BIT0)
#define clr_phase_2_energy_pulse_indicator()        (P3OUT |= BIT1)
#define clr_phase_3_energy_pulse_indicator()        (P3OUT |= BIT2)

/*! This switch selects support for measuring the total reactive energy. */
#define TOTAL_REACTIVE_ENERGY_SUPPORT

/*! This switch selects support for measuring the reactive energy on a phase by phase
    basis. This is only significant for poly-phase meters. */
#undef PER_PHASE_REACTIVE_ENERGY_SUPPORT

/*! This enables the generation of total energy pulses to an accuracy of 1/32768s, instead
    of 10/32768s, when building meters using the ADC12 ADC converter. This features uses channel
    2 of timer A, and the pulse LED/opto-coupler/etc. must be attached to the TA2 pin of the MCU.
    Because extra hardware resources are used, and most meters do not require this level of pulse
    position accuracy, this feature is made an option. */
#undef FINE_ENERGY_PULSE_TIMING_SUPPORT

/*! This switch enables use of the MSP430's internal temperature diode to
    measure the meter's temperature. */
#define TEMPERATURE_SUPPORT

/*! This switch selects support for the monitoring of a hall-effect magnetic sensor. This can be
    used to detect very high magnetic fields which might be used for tampering (i.e. fields strong
    enough to paralyse CTs, and other magnetic components in the meter's design). */
#undef MAGNETIC_INTERFERENCE_SUPPORT

/*! This sets the number of consecutive seconds magnetic interference must be present
    or not present before the magnetic tampering state will switch. */
//#define MAGNETIC_INTERFERENCE_PERSISTENCE_CHECK     5

/*! The hall effect sensors used to detect magnetic tampering output pulses, whose on/off ratio
    reflects the scale of the magnetic field. This sets the ratio at which magnetic tampering is
    declared. */
//#define MAGNETIC_INTERFERENCE_SAMPLE_RATIO          10

/*! When magnetic tampering is detected, the output of CTs is completely unreliable. The meter can only
    assume there is a very high load at unity power factor, and charge accordingly. This sets the current
    to be used in this calculation. It is specified in milliamps. */
#define MAGNETIC_INTERFERENCE_CURRENT               60000

/*! This switch selects support for a short range RF link. */
#undef RF_LINK_SUPPORT

/*! This selects real time clock support. This is implemented in software on
    the MSP430. */
#define RTC_SUPPORT

/*! Related definitions to get special action routines to be called at various
    intervals. User supplied callback functions must be provided. Note these
    callback routines are called from within the per second timer interrupt
    service routine. Don't do anything too complex within them. If a long
    activity is required, set a flag within a simple routine, and do the main
    work in the main non-interrupt loop. */
#undef PER_SECOND_ACTIVITY_SUPPORT
#undef PER_MINUTE_ACTIVITY_SUPPORT
#undef PER_HOUR_ACTIVITY_SUPPORT
#undef PER_DAY_ACTIVITY_SUPPORT
#undef PER_MONTH_ACTIVITY_SUPPORT
#undef PER_YEAR_ACTIVITY_SUPPORT

/*! Corrected RTC support enables temperature and basic error compensation for
    the MSP430's 32kHz crystal oscillator, so it makes for a higher quality RTC
    source, even using low accuracy (eg 20ppm) crystals. */
#define CORRECTED_RTC_SUPPORT

/*! This select support for a custom real time clock. The customer's routine
    will be called every second. */
#undef CUSTOM_RTC_SUPPORT
#if defined(__MSP430__)
#define custom_rtc()                                /**/
#define custom_rtc_set()                            /**/
#define custom_rtc_retrieve(x)                      /**/
#endif

/*! This switch enables measurement of the third and fifth harmonic contents
    of the current waveform. */
#undef HARMONICS_SUPPORT

/*! This switch select the use of current dependant phase correction, to allow
    the use of non-linear CTs. */
#define PHASE_CORRECTION_SUPPORT

/*! This switch enables dynmaic phase correction for non-linear CTs, or other sensors
    for which the phase changes with the current. */
#undef DYNAMIC_PHASE_CORRECTION_SUPPORT

/* This select support for a custom real time clock. The customer's routine
   will be called every second. */
#undef CUSTOM_RTC_SUPPORT

/* This switch enables power down to battery backup status on loss of line
   power. */
#undef POWER_DOWN_SUPPORT

/* These switches select a method of detecting when power is restored, if
   power down mode is supported. */
/* This method assumes the voltage waveform is being turned into simple
   digital pulses into an I/O pin. If this feature is used, POWER_UP_VOLTAGE_PULSE
   must define the way a voltage pulse is sensed. */
#undef POWER_UP_BY_VOLTAGE_PULSES
//#define power_up_voltage_pulse()                  (P1IN & BIT0)

/* This method assumes the pre-regulator power supply voltage is being
   monitored by Comparator A. This method is suitable for meters which
   support a live/neutral only mode, for tamper resistance. */
#define POWER_UP_BY_SUPPLY_SENSING

/* This switch enables custom routines to be called as the meter enters and
   exits the power fail state. These might be used to save and restore things,
   using non-volatile memory. */
#undef CUSTOM_POWER_DOWN_SUPPORT

/* Many data logging requirements can be met by using only the MSP430's
   info memory. If an external serial EEPROM is needed for more
   complex requirements, this switch will enable an interface to
   I2C type serial EEPROMs. Basic routines to driver these EEPROMs are
   included in the toolkit. Routines to actually store and retrieve
   information are left to the meter designer. */
#undef EXTERNAL_EEPROM_SUPPORT

/* This switch enables support of an IR receiver and/or transmitter for
   programming and/or reading the meter. */
#define IEC1107_SUPPORT

/*! This definition specifies the port bit change required to enable the IR
    receiver, when one is used. */
#define enable_ir_receiver()                        /**/

/*! This definition specifies the port bit change required to disable the IR
    receiver, for power saving, when one is used. */
#define disable_ir_receiver()                           /**/

/*! This defines the speed of UART 0 */
#define USART0_BAUD_RATE                              9600

/*! This defines the speed of UART 1 */
//#define USART1_BAUD_RATE                                9600

/*! This switch enables a rolling display of all the meter's measured
    parameters, for demonstration purposes. The parameters are displayed
    on a local attached LCD, which may be driven by an MSP430's internal
    LCD controller, or be part of a standard external module.
    Real meters will generally need to replace this with their own custom
    display routines. */
#define BASIC_LCD_SUPPORT

/*! This switch enables the calling of a custom LCD display routine. This allows
    easy integration of custom code for specific meter designs. */
#undef CUSTOM_LCD_SUPPORT

/*! This is called to perform initialisation of a custom display */
#define custom_lcd_init()                           /**/

/*! This is called to perform custom display processing when the meter goes to
    sleep. This is typically turning off the display, to conserve energy. */
#define custom_lcd_sleep_handler()                  (LCDsleep(), display_power_fail_message())

/*! This is called to perform custom display processing when the meter wakes up from
    the sleeping condition. */
#define custom_lcd_wakeup_handler()                 LCDawaken()

/*! This switch enables multi-rate tariff features */
#undef MULTI_RATE_SUPPORT

/*! This is called from within the main processing loop. This allows easy integration
    of custom code for specific meter designs. This routine is called often in normal
    operating mode. In limp mode it is called once each time the background activity
    informs the foreground activity there is a block of data to be processed. It will
    also be called when a key is pressed, or for each repeat if a key is in repeat
    mode. */
#define custom_mainloop_handler()                   /**/

/*! This is called in the main processing once every 2 seconds. */
#if defined(__MSP430__)
#define custom_2second_handler()                    /**/
#endif

/*! This switch enables support for some basic keypad handling, to work
    with the basic demonstration LCD display routines. It demonstrates an
    approach to keypad handling within an e-meter. */
#define BASIC_KEYPAD_SUPPORT

/*! This switch enables the calling of a custom keypad handler routine. This
    allows easy integration of custom code for specific meter designs. */
#undef CUSTOM_KEYPAD_SUPPORT

/*! These are used with the above switches to determine the port bits assigned
    to the keys. Only define the buttons which are actually used. */
#define sense_key_1_up()                            (!(P1IN & BIT6))
#undef sense_key_2_up
#undef sense_key_3_up
#undef sense_key_4_up

/*! These are used to select the features required of the keys. They are bits in
    the key_states variable. Only define the features being used. Usually for
    each key the "DOWN" option and either the "LONG_DOWN" or "REPEAT_DOWN" option
    should be specified. Do not select both the "LONG_DOWN" and "REPEAT_DOWN" for the
    same key. */
#define KEY_1_DOWN                                  0x01
#undef KEY_1_LONG_DOWN                           //0x02
#define KEY_1_REPEAT_DOWN                           0x02
#undef KEY_2_DOWN                                //0x04
#undef KEY_2_LONG_DOWN                           //0x08
#undef KEY_2_REPEAT_DOWN                         //0x08
#undef KEY_3_DOWN                                //0x10
#undef KEY_3_LONG_DOWN                           //0x20
#undef KEY_3_REPEAT_DOWN                         //0x20
#undef KEY_4_DOWN                                //0x40
#undef KEY_4_LONG_DOWN                           //0x80
#undef KEY_4_REPEAT_DOWN                         //0x80

/*! Normally the meter software only calculates the properly scaled values
    for voltage, current, etc. as these values are needed. This define
    enables additional global parameters, which are regularly updated with
    all the metrics gathered by the meter. This is generally less efficient,
    as it means calculating things more often than necessary. However, some
    may find this easier to use, so it is offered as a choice for the meter
    designer. */
#define PRECALCULATED_PARAMETER_SUPPORT

/*! A PWM generator can be used to add dithering to the signals, to expand the
    effective resolution of the ADC. */
#undef PWM_DITHERING_SUPPORT

#undef DAC12_DITHERING_SUPPORT

/*! This switch select the use of current dependant phase correction, to allow
    the use of non-linear CTs. */
#define DYNAMIC_FIR_SUPPORT

/*! This switch selects where a backup battery's condition is monitored. */
#undef BATTERY_MONITOR_SUPPORT

/*! Target specific definitions for controlling the indicator LEDs */
#if defined(__MSP430__)
/*! This definition specifies the port bit change required to turn on the
    normal operation indicator LED, when one is used. If this is defined,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日产亚洲精品系列| 久久久国产精品午夜一区ai换脸| 懂色av一区二区三区免费看| 精品亚洲国内自在自线福利| 偷拍与自拍一区| 亚洲第一搞黄网站| 日韩精品五月天| 男男视频亚洲欧美| 国产乱淫av一区二区三区| 国产一区二区三区在线观看免费| 国产一区二区三区免费播放| 国产伦精品一区二区三区在线观看 | 亚洲综合色丁香婷婷六月图片| 日韩美女精品在线| 亚洲欧美一区二区三区极速播放| 18成人在线视频| 综合欧美亚洲日本| 婷婷六月综合亚洲| 国产精品中文字幕日韩精品 | 日韩一区二区三区视频| 欧美一级艳片视频免费观看| 欧美第一区第二区| 国产精品福利av| 亚洲mv在线观看| 久久成人18免费观看| 豆国产96在线|亚洲| 在线亚洲高清视频| 欧美精品一区二区三区高清aⅴ| 国产人伦精品一区二区| 亚洲欧美色综合| 久久精品久久综合| 色综合视频一区二区三区高清| 欧美理论片在线| 国产午夜精品一区二区| 亚洲综合另类小说| 国产精品一区二区久久不卡| 色综合久久天天| 久久久久成人黄色影片| 一区二区欧美国产| 国产麻豆9l精品三级站| 欧美日韩一卡二卡| 国产精品二区一区二区aⅴ污介绍| 亚洲va国产天堂va久久en| 国产精品一二三四五| 69堂国产成人免费视频| 国产精品福利av| 国产一区二区三区在线看麻豆| 欧美三日本三级三级在线播放| 国产亚洲成av人在线观看导航| 天堂在线亚洲视频| 99国产精品国产精品毛片| 精品成人一区二区三区四区| 日日夜夜免费精品| 色综合久久久网| 中文字幕免费不卡在线| 久久成人18免费观看| 欧美精品免费视频| 一区二区三区欧美视频| 成人av网站在线观看| 久久精品夜色噜噜亚洲a∨| 天堂成人国产精品一区| 欧美私人免费视频| 亚洲综合色噜噜狠狠| 9色porny自拍视频一区二区| 国产亚洲成年网址在线观看| 精品一区免费av| 日韩女优视频免费观看| 人人超碰91尤物精品国产| 日本韩国欧美国产| 亚洲最色的网站| 91看片淫黄大片一级在线观看| 中文字幕av资源一区| 国产中文一区二区三区| 日韩精品自拍偷拍| 国产一区二区三区精品欧美日韩一区二区三区 | 国产亚洲一本大道中文在线| 美洲天堂一区二卡三卡四卡视频| 7777精品伊人久久久大香线蕉最新版| 亚洲欧美日韩久久精品| 色偷偷88欧美精品久久久| 一区二区日韩av| 7777精品伊人久久久大香线蕉经典版下载 | 精品一区二区免费在线观看| 日韩免费看的电影| 国产精品99久久久| 中文字幕日韩一区| 欧美亚洲综合色| 午夜国产不卡在线观看视频| 69成人精品免费视频| 首页国产欧美久久| 欧美电视剧免费全集观看| 国产一区在线精品| 一区在线观看免费| 欧美日韩专区在线| 麻豆久久久久久| 国产精品理论片在线观看| 在线视频国内一区二区| 日韩精品电影一区亚洲| 欧美精品一区二区高清在线观看| 国产成人精品三级麻豆| 亚洲精品欧美激情| 国产性天天综合网| 色菇凉天天综合网| 国产一区日韩二区欧美三区| 日韩一区在线看| 91精品婷婷国产综合久久性色| 国产传媒日韩欧美成人| 亚洲精品videosex极品| 欧美成人a∨高清免费观看| 91一区一区三区| 麻豆国产精品777777在线| 日韩中文欧美在线| 欧美国产精品专区| 欧美精品久久一区| 99re热视频这里只精品| 日韩黄色在线观看| 自拍偷自拍亚洲精品播放| 日韩欧美电影一二三| 一本大道综合伊人精品热热 | 久久99这里只有精品| 亚洲乱码国产乱码精品精的特点 | 国产毛片精品视频| 亚洲va欧美va人人爽午夜| 国产精品天干天干在观线| 7777女厕盗摄久久久| 色综合一个色综合亚洲| 国产福利一区二区三区视频在线 | 国产.欧美.日韩| 日本aⅴ亚洲精品中文乱码| 亚洲精品乱码久久久久久久久 | 亚洲高清视频中文字幕| 亚洲三级电影网站| 欧美激情一区二区三区蜜桃视频| 欧美日韩免费视频| 在线看国产日韩| 成人毛片老司机大片| 国产精品一区二区三区99| 日韩vs国产vs欧美| 五月婷婷另类国产| 亚洲一区二区三区三| 亚洲免费av高清| 综合欧美一区二区三区| 中文欧美字幕免费| 国产精品每日更新在线播放网址| 久久久91精品国产一区二区三区| 91精品久久久久久久91蜜桃| 欧美日本一道本| 欧美性一级生活| 91成人免费在线| 在线一区二区三区| 欧洲国产伦久久久久久久| 色又黄又爽网站www久久| 99精品视频在线观看| 91亚洲精华国产精华精华液| 99热在这里有精品免费| 99国产一区二区三精品乱码| 成人免费观看男女羞羞视频| 成人av网在线| 91亚洲精品久久久蜜桃网站 | 欧美电影免费观看高清完整版在 | 国产精品美女久久久久久久久久久| 国产欧美日韩在线看| 欧美激情在线免费观看| 亚洲欧美偷拍三级| 午夜精品福利一区二区蜜股av | 欧美大片日本大片免费观看| 久久色视频免费观看| 国产日产亚洲精品系列| 成人免费在线观看入口| 亚洲大片在线观看| 蜜臀精品久久久久久蜜臀| 国产精品77777| 96av麻豆蜜桃一区二区| 欧美日韩三级在线| 久久免费视频色| 一区二区三区不卡在线观看| 午夜视频一区二区三区| 国产自产v一区二区三区c| 99久久婷婷国产精品综合| 欧美日精品一区视频| 久久久青草青青国产亚洲免观| 亚洲色图视频网站| 日韩不卡一区二区三区| 国产黄色91视频| 欧美久久久久免费| 国产精品嫩草99a| 丝袜a∨在线一区二区三区不卡| 国产在线精品一区在线观看麻豆| 91亚洲精品一区二区乱码| 欧美一区二区三区视频免费 | 国产成人av电影在线播放| 欧洲av在线精品| 久久精品视频在线看| 亚洲成人精品在线观看| 狠狠久久亚洲欧美| 欧美日韩卡一卡二| 中文字幕在线观看一区二区| 青青草视频一区| 91网站最新网址| 久久尤物电影视频在线观看|