參數資料
型號: DRM044
英文描述: Central Heating Controller using the MC68HC908LJ12
中文描述: 集中供暖控制器使用MC68HC908LJ12
文件頁數: 28/80頁
文件大?。?/td> 1025K
代理商: DRM044
Software
Designer Reference Manual
DRM040 — Rev 0
28
Software
MOTOROLA
3.1.2 main loop
The main routine is implemented in ‘C’ code. The function is called from
the Start08 routine and immediately calls the assembly initialization
code, Asm_Init(), and then the C initialization code, C_Init(). After
execution of the initialization code the routine checks PTA0 and enters
calibration mode if set to logic 1. In calibration mode Timer1 is set to
output a 100KHz reference signal to enable the clock to be tuned with
the trim cap mounted on the board. The code remains in calibration
mode until PTA0 is reset to locic0. The code then enters an infinite loop
and waits for a new sample to be completed (every 625us), which is
indicated by the NEW_SAMPLE_FLAG set in the ApplicationFlags
buffer. If all 256 samples are completed (8 cycles of mains input) the
code scales the new instant power calculation before saving the value in
InstantPower buffer. This power value is also added to the active tariff to
calculate the accumulated power before the code checks if time or date
is to be displayed and updates the Display_Buf with the latest real time
clock information. Finally, the display result function is called to display
the new data on the LCD and loops back and waits for the next sample.
If the 256 samples were not complete the code checks the
SwitchDecode function to see if any switches were pushed since last
poll. The code then loops back to the start and waits for the next new
sample. Figure 4.2 shows main loop flow diagram
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關PDF資料
PDF描述
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
DRM054 Accelerometer Reference Design Using the MC68HC908QY4
DRM055 High Data Rate Wireless USB Optical Mouse Solution Using the MC68HC908QY4 and MC68HC908JB12
相關代理商/技術參數
參數描述
DRM10 功能描述:DIP 開關/ SIP 開關 BCD 10 POS RoHS:否 制造商:Omron Electronics 位置數量:10 開關類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM1004 功能描述:DIP 開關/ SIP 開關 ROTARY DIP SWITCH PLASTICSHAFT RoHS:否 制造商:Omron Electronics 位置數量:10 開關類型: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:否 類別:開關 >> DIP 系列:DR 特色產品:RDM Series Rotary DIP Switch 標準包裝:70 系列:RDM 電路:十六進制 位置數:16 觸點額定電壓:0.1A @ 42VDC 觸動器類型:用于工具旋轉 觸動器電平:凹槽式 安裝類型:通孔 方向:頂部觸動 可清洗:是 其它名稱:EG4977-5RDMAR16PIT
DRM10C04 功能描述:編碼式波段開關 SW DIP MINI SHAFT 10POS T/H RoHS:否 制造商:C&K Components 位置數量:10 輸出代碼:Binary Coded Decimal 執(zhí)行器:Screwdriver 觸點額定值: 端接類型:Solder Pin 封裝:Tube