參數(shù)資料
型號: DRM042
英文描述: Universal Serial Bus Wireless Optical Mouse and Multimedia Keyboard reference design designer reference manual
中文描述: 通用串行總線無線光學(xué)鼠標和多媒體鍵盤參考設(shè)計,設(shè)計參考手冊
文件頁數(shù): 25/80頁
文件大?。?/td> 1025K
代理商: DRM042
DRM040 — Rev 0
Designer Reference Manual
MOTOROLA
Software
25
Designer Reference Manual — DRM040
Section 3. Software
This section describes the power meters application software. The meter
can be operated in normal mode, which is conceptually split into 2 main
sections: measurement algorithm and user interface or calibration mode
where a 100Khz signal is output to allow trimming of the crystal. The
source code comprises of both assembly and C code. The majority of the
assembly code has been written for the measurement algorithm,
mathematical functions and LCD display. The C code has been used for
the main loop, Real Time Clock and the user interface. These modules
are compiled separately and linked together using the Metrowerks tools.
Refer to
Appendix C
for details of how to mix assembly and ‘C’ source
code using Metrowerks code-warrior tools for HC08.
The measurement algorithm is the most critical section of code, as it
performs the active power calculation as defined in
Section 1.2
, Theory
of Operation. The instantaneous power is calculated by taking samples
of the line voltage and load current and by multiplying them together.
This power is integrated over time (continuous summation of individual
voltage and current product terms) to calculate the active (real) power,
which is effectively the average of the instantaneous power. Samples
are taken every 625us (1600Hz), which corresponds to 32 samples per
power cycle (50Hz). The majority of the calculation is performed in the
timer2 interrupt service routine. See Tim2_ISR for details.
The second main code section is the user interface. This comprises of
the LCD display, the Real Time Clock (RTC) and the Switch Interface.
The LCD displays the energy for tariffs T1, T2, T3, T4 and the time and
date at 5s intervals. The energy is a scaled version of the instantaneous
power accumulated over time. The active tariff is determined from a
simple routine that changes the tariff every 3 mins or at pre-determined
days and times stored in EEPROM. The mode executed is determined
at compile time with the inclusion or otherwise of the
TARIFF_TEST_UPDATE macro. The switch interface consists of two
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
DRM043 Li-on Battery Charger Reference Design Designer Reference Manual
DRM044 Central Heating Controller using the MC68HC908LJ12
DRM045 Using the ASB520 MC68HC908QT2 Based Infrared Remote Control Reference PC Board Designer Reference Manual
DRM049 Internet Connectivity with HCS12 16-bit Microcontroller using the ACP
DRM050 DRM050
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
DRM10 功能描述:DIP 開關(guān)/ SIP 開關(guān) BCD 10 POS RoHS:否 制造商:Omron Electronics 位置數(shù)量:10 開關(guān)類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM1004 功能描述:DIP 開關(guān)/ SIP 開關(guān) ROTARY DIP SWITCH PLASTICSHAFT RoHS:否 制造商:Omron Electronics 位置數(shù)量:10 開關(guān)類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM101 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Blood Pressure Monitor Using the Flexis QE128 Family
DRM10C 功能描述:SWITCH DIP MINI SHAFT 10POS T/H RoHS:否 類別:開關(guān) >> DIP 系列:DR 特色產(chǎn)品:RDM Series Rotary DIP Switch 標準包裝:70 系列:RDM 電路:十六進制 位置數(shù):16 觸點額定電壓:0.1A @ 42VDC 觸動器類型:用于工具旋轉(zhuǎn) 觸動器電平:凹槽式 安裝類型:通孔 方向:頂部觸動 可清洗:是 其它名稱:EG4977-5RDMAR16PIT
DRM10C04 功能描述:編碼式波段開關(guān) SW DIP MINI SHAFT 10POS T/H RoHS:否 制造商:C&K Components 位置數(shù)量:10 輸出代碼:Binary Coded Decimal 執(zhí)行器:Screwdriver 觸點額定值: 端接類型:Solder Pin 封裝:Tube