《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 其他 > 设计应用 > 基于Excel VBA的电源电流检测电路快速参数选定
基于Excel VBA的电源电流检测电路快速参数选定
2023年电子技术应用第5期
周军,丁涛杰,毛臻
(中国电子科技集团公司第五十八研究所,江苏 无锡 214035)
摘要: 对于实际的电源电路系统,通过设计电流检测电路来实现对各路电源电流的实时检测,在电流检测电路设计过程中通常需要对采样电阻和调理电阻的阻值进行选型计算。针对这种比较繁琐且重复性较高的工作,提出利用Excel VBA编写包含串联、并联及比例的阻值选型计算模块技术,能够快速有效地解决电流检测电路中的电阻选型问题。结果表明:使用VBA程序对电阻数据进行选型计算,能够在Excel的工作表单元格上自动生成目标电阻阻值,该方法能够有效地提高采样电阻和调理电阻的阻值选型计算的精度及效率。
關(guān)鍵詞: 电流检测 阻值计算 Excel VBA
中圖分類號(hào):TN7
文獻(xiàn)標(biāo)志碼:A
DOI: 10.16157/j.issn.0258-7998.223467
中文引用格式: 周軍,丁濤杰,毛臻. 基于Excel VBA的電源電流檢測電路快速參數(shù)選定[J]. 電子技術(shù)應(yīng)用,2023,49(5):67-70.
英文引用格式: Zhou Jun,Ding Taojie,Mao Zhen. Fast parameter selection of power supply current detection circuit based on Excel VBA[J]. Application of Electronic Technique,2023,49(5):67-70.
Fast parameter selection of power supply current detection circuit based on Excel VBA
Zhou Jun,Ding Taojie,Mao Zhen
(China Electronics Technology Group Corporation No.58 Research Institute, Wuxi 214035, China)
Abstract: For the actual power supply circuit system, the current detection circuit is designed to realize the real-time detection of each power supply current. In the process of current detection circuit design, it is usually necessary to select and calculate the resistance values of the sampling resistance and conditioning resistance. In view of this complicated and highly repetitive work, the technology of using Excel VBA to compile resistance selection calculation module including series, parallel and proportion is proposed. It can quickly and effectively solve the problem of resistance selection in current detection circuit. The results show that using VBA program to calculate the resistance data can automatically generate the target resistance value on the Excel worksheet cells. This method can effectively improve the accuracy and efficiency of the resistance selection calculation of the sampling resistance and conditioning resistance.
Key words : current detection;calculation of resistance value;Excel;VBA

0 引言

對于一個(gè)實(shí)際的電路系統(tǒng),需要認(rèn)真分析它的電源需求,不僅僅要關(guān)心輸入電壓和輸出電壓,還要細(xì)致地考慮電源總功耗問題,因此在設(shè)計(jì)電源電路前需要先評估每路電源的功耗,然后選擇合適的電源IC。在測試電源電路時(shí)有時(shí)想知道之前評估的電源功耗是否準(zhǔn)確,很容易通過電源儀表去觀測到輸入電源的電流從而計(jì)算輸入電源的總功耗,但是輸入電源經(jīng)過變換后的每一路的輸出電源無法進(jìn)行實(shí)時(shí)觀測,此時(shí)運(yùn)用電源電流檢測IC能實(shí)時(shí)對各路電源進(jìn)行電流監(jiān)測,從而能計(jì)算各路電源的功耗。

電源電流檢測電路除了檢測電流IC外,通常包含電流采樣電阻和信號(hào)調(diào)理電路,最終將調(diào)理后的電壓信號(hào)送至ADC進(jìn)行采樣,在電流轉(zhuǎn)換到電壓過程中就涉及了定標(biāo)問題,本文利用Excel VBA進(jìn)行快速定標(biāo)。


本文詳細(xì)內(nèi)容請下載:http://ihrv.cn/resource/share/2000005325




作者信息:

周軍,丁濤杰,毛臻

(中國電子科技集團(tuán)公司第五十八研究所,江蘇 無錫 214035)


此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。