【正文】
[23]李西平。 [19]黎洪生,張虎。 [15]王威。 [11]陳鐵軍,謝春萍。 [6]李楠,屈百達(dá)。 [2]溫如春,吳銀風(fēng)。在 60Hz 滿刻度輸入時(shí),該寄存器對(duì)應(yīng)的掉電檢測(cè)閾值為 0x92。當(dāng)有中斷事件發(fā)生時(shí),中斷復(fù)位寄存器 地址: 0xla 中對(duì)應(yīng)的標(biāo)志位置 l,同時(shí) ADE7758 的 IRQ 輸出低電平,向單片機(jī)發(fā)出中斷請(qǐng)求。0x10 0x10 退出時(shí)鐘初值輸入調(diào)整 K K4 按下 P2amp。0x04 0 amp。 表 63 key scanning and function configuration 按鍵狀態(tài) 下 述判斷條件為真 功能說(shuō)明 無(wú)鍵按下 P2amp。若沒(méi)有檢測(cè)到按鍵按下,不予處理并返回。按鍵掃描采用中斷方式進(jìn)行,通過(guò) 74LS08“與”門(mén)邏輯與單片機(jī)的 INT0 口連接。 ADE7758電流通道信號(hào)輸入有兩種選擇方案, RflRf4為誤差在 5%之間的色環(huán)電阻。當(dāng)條件 flag3! flag4 滿足時(shí),則重新進(jìn)行功率分段和電流傳感器變比切換,通過(guò)調(diào)用函數(shù) init_77580 進(jìn)行計(jì)量芯片的再次初始化。 數(shù)檢測(cè)與實(shí)時(shí)計(jì)量 功率參數(shù)檢測(cè)處理。 電流傳感器變比切換過(guò)程中的計(jì)量誤差問(wèn)題。通過(guò)調(diào)用函數(shù) write2402_long 進(jìn)行電量參數(shù)的存儲(chǔ);其中 flag2用來(lái)存儲(chǔ)上次循環(huán)中 flag1 的取值。在系統(tǒng)上電后,讀取 AT24C02 中上次存儲(chǔ)的兩組電量參數(shù),若兩組參數(shù)相同,則表明上次存儲(chǔ)結(jié)果正確;否則把當(dāng)前單片機(jī) RAM 中的電 量參數(shù)存儲(chǔ)到 AT24C02 中。單片機(jī)讀取該寄存器讀數(shù)據(jù)時(shí),數(shù)據(jù)接收格式為“ 01XXXXXXXXXX1111”,其中后四位代碼“ 1111”為 ADE7758 發(fā)送的無(wú)意義數(shù)據(jù)。//單片機(jī)通過(guò) I2C 總線讀取一個(gè)字節(jié)的數(shù)據(jù) void write2402_long char add,1ong int a1 , //單片機(jī)向 AT24C02 存儲(chǔ)一個(gè)長(zhǎng)整型數(shù)據(jù) long int read2402_long char add 。 顯示函數(shù)的調(diào)用與按鍵狀態(tài)有關(guān),以函數(shù) display_ 為例說(shuō)明。結(jié)合 RS485 接 rl 電路圖 46說(shuō)明。這就表明, 7805 驅(qū)動(dòng)負(fù)載過(guò)多會(huì)導(dǎo)致電源輸出電壓下降。采用 ME300B 單片機(jī)開(kāi)發(fā)系統(tǒng)進(jìn)行功能模塊的短路測(cè)試。然后把ADE7758 芯片引腳對(duì)準(zhǔn)焊接位置,用燒熱的烙鐵頭 不帶焊錫 在 ADE7758 的引腳和焊接點(diǎn)連接處預(yù)熱片刻,可以觀察到一股細(xì)小的 錫流沿著焊接線展開(kāi)。在對(duì)時(shí)鐘芯片 DSl302 進(jìn)行仿真調(diào)試時(shí),并沒(méi)有認(rèn)識(shí)到去耦電容的重要性,芯片電源引腳沒(méi)有外接 的去耦電容,沒(méi)有達(dá)到預(yù)期的仿真結(jié)果,原因就出在去耦電容上。在板的兩面采用大面積覆銅接地,不區(qū)分?jǐn)?shù)字地和模擬地 。 CON3 為兩路 9V 正弦交流信號(hào)輸入接口,中間為接地端子。 二極管 LEDl 指示功率分段情況, C2 為 心的去耦電容, R2 為限流電阻。連接至 A 腳的下拉電阻 R3連接至 B 腳的上拉電阻 R30 用于提高該 RS485 網(wǎng)絡(luò)節(jié)點(diǎn)的工作可靠性。為了避免這種情況,對(duì)每一個(gè)電量參數(shù)分配兩組存儲(chǔ)單元;以朋為例, OxOOOx03 為一組存儲(chǔ)單元。采用定時(shí)方式進(jìn)行電量參數(shù)的存儲(chǔ)。當(dāng)沒(méi)有中斷發(fā)生時(shí),進(jìn)行總的有功、無(wú)功電量顯示;顯示數(shù)據(jù)格式參考附錄圖 Dl 所示。 主要功能特性 兼容 MCS51 指令系統(tǒng) 8k 可反復(fù)擦寫(xiě) 大于 1000 次) Flash ROM; 32 個(gè)雙向 I/O 口; 256x8bit 內(nèi)部 RAM; 3 個(gè) 16 位可編程定時(shí) /計(jì)數(shù)器中斷; 時(shí)鐘頻率 024MHz; 2 個(gè)串行中斷,可編程 UART 串 行通道; 2 個(gè)外部中斷源,共 8 個(gè)中斷源; 2 個(gè)讀寫(xiě)中斷口線, 3 級(jí)加密位; 低功耗空閑和掉電模式,設(shè)置睡眠和喚醒功能; 1有 PDIP、 PQFP、 TQFP 及 PLCC 等幾種封裝形式,以適應(yīng)不同產(chǎn)品的需求。與接口電路有關(guān)的全局變量說(shuō)明如下:長(zhǎng)整型變量, RO,EO、 E E EE P、 V,字符型變量, H H H3。發(fā)光二極管 LEDl 指示功率分段和變比切換情況。平均有功、無(wú)功功率通過(guò)瞬時(shí)功率 的直流分量獲得。 路原理 計(jì)量電路采用 ADE7758 專用電能計(jì)量芯片,由信號(hào)衰減網(wǎng)絡(luò)和濾波網(wǎng)絡(luò)兩部分組成。 電流通道模擬信號(hào)差動(dòng)輸入;本方案選擇輸入信號(hào)最大為177。 圖 41 ADE7758 引腳配置 計(jì)量芯片 ADE7758 置及功能描述 計(jì)量芯片 ADE7758 引腳配置如圖 41 所示。 EO: RO: 系統(tǒng)配置三個(gè)功能按鍵,記為 K K K4.功能描述參考表 31 所示 表 31 計(jì)量數(shù)據(jù)顯示格式 按鍵類型 顯示界面示例 功能描述 K2 E1: E2: 顯示分時(shí)段計(jì)量的有功功率 K3 E3: E4: 顯示實(shí)時(shí)分段計(jì)量的有功電量 K4 P: V: 顯示瞬時(shí)有功功率 P、無(wú)功功率 V K2 、 K3 組合 0805/04/00:00:00 進(jìn)入時(shí)鐘初值調(diào)整,光標(biāo)指示調(diào)整對(duì)象 K K4 組合 H1:0002 0805/04/00:00:00 異常事件記 錄查詢 K K4 組合 E0: R0: 退出時(shí)鐘初值調(diào)整并返回主顯示 其中 R0、 E0、 EE E E P、 V、 H H H3 參考符號(hào)約定部分說(shuō)明。后備電源 LIR2032 為可充電的 鋰電池,充電時(shí)電流最大不超過(guò) 20mA。3 系統(tǒng)結(jié)構(gòu)框圖與設(shè)計(jì)要求 系統(tǒng)結(jié)構(gòu)框圖 系統(tǒng)結(jié)構(gòu)框圖是系統(tǒng)產(chǎn)品化的基礎(chǔ),它包含了系統(tǒng)的硬件選擇及軟件開(kāi)發(fā),是在對(duì)系統(tǒng)功能、技術(shù)指標(biāo)、性價(jià)比、元器件的可購(gòu)性等因素進(jìn)行可行性分析的基礎(chǔ)上,對(duì)多個(gè)方案比較權(quán)衡后確定。這些單片機(jī)一般都帶有多個(gè) I/ O 口,內(nèi)含一定字節(jié)的 ROM、 RAM,有的單片機(jī)還含有實(shí)時(shí)時(shí)鐘、通信口和“看門(mén)狗”等。尤其是大工業(yè)用戶,對(duì)三相多費(fèi)率表的需求,會(huì)較快增長(zhǎng)。上述三種芯片都集 成了 DSP 數(shù)字信號(hào)處理技術(shù),支持硬件和軟件兩種校表方式,計(jì)量精度高,且外圍電路設(shè)計(jì)簡(jiǎn)單。文獻(xiàn) [15]進(jìn)行了 RS485 電路的匹配和保護(hù)性研究,文獻(xiàn) [16]實(shí)現(xiàn)了 PC 機(jī)與 RS 一 485 總線多機(jī)串行通信的軟硬件設(shè)計(jì)。功能的擴(kuò)展提升了供電部門(mén)對(duì)居 民用電的現(xiàn)代化管理,為將來(lái)實(shí)現(xiàn)大規(guī)模自動(dòng)抄表提供了基礎(chǔ)。 4 提出了軟件的總體設(shè)計(jì)方案 關(guān)鍵詞:精確計(jì)量, ADE7758, AT89C52ABSTRACT In smart metering, metering chip ADE7758 and the AT89C52 design threephase energy meter, introduced the measurement circuit theory, system structural characteristics, as well as the segment measured in software design and implementation. Normal load of 1035kV transmission and distribution work and ultralow load in both cases, accurate measurement, the measured amount of power realtime segmentation energy meter design。采 樣信號(hào)經(jīng)信號(hào)放大器 PGAI、 PGAZ 和數(shù)模轉(zhuǎn)換 ADC 后轉(zhuǎn)換為數(shù)字信號(hào)。 ADE7758對(duì)數(shù)字信號(hào)進(jìn)行處理轉(zhuǎn)換為瞬時(shí)功率信號(hào)。 in order to adjust the power load curve for electricity is not balanced, The proposed multirate subperiod measurement program. The ADE7758 Current sampling to achieve through the current transformer, the voltage sampled by the voltage divider work. Sampling the signal by the signal amplifier PGAI, PGAZ digital to analog converter ADC converted to digital signal. ADE7758 digital signal processing to be converted to the instantaneous power signal. Instantaneous power signal through a low pass filter LPFZ isolate the average power, average power in the energy registers continue to accumulate. Cumulative energy is converted to the number of frequency conversion DFC pulse output. AT89552 through the pulse count measurement of energy. This thesis discusses the significance of this topic and the development process of the energy meter based on the highprecision power chip ADE7758 and AT89C52 threephase multifunction industrial power meter, the main contents are as follows: 1 , and discussed the development trends of the energy meter. 2 analysis of threephase multifunction industrial energy meter power measurement principle. 3 research and development of the overall design of electronic hardware circuit design energy metering part of the energy meter function and the control section. The program uses a variety of chips to achieve the corresponding functions of each part, has a powerful, simple structure, high reliability. 4 the overall design of the software process. Keywords: accurate measurement, simulation,