《电子技术应用》
您所在的位置:首页 > 其他 > 设计应用 > 基于Excel VBA的电源电流检测电路快速参数选定
基于Excel VBA的电源电流检测电路快速参数选定
2023年电子技术应用第5期
周军,丁涛杰,毛臻
(中国电子科技集团公司第五十八研究所,江苏 无锡 214035)
摘要: 对于实际的电源电路系统,通过设计电流检测电路来实现对各路电源电流的实时检测,在电流检测电路设计过程中通常需要对采样电阻和调理电阻的阻值进行选型计算。针对这种比较繁琐且重复性较高的工作,提出利用Excel VBA编写包含串联、并联及比例的阻值选型计算模块技术,能够快速有效地解决电流检测电路中的电阻选型问题。结果表明:使用VBA程序对电阻数据进行选型计算,能够在Excel的工作表单元格上自动生成目标电阻阻值,该方法能够有效地提高采样电阻和调理电阻的阻值选型计算的精度及效率。
中图分类号:TN7
文献标志码:A
DOI: 10.16157/j.issn.0258-7998.223467
中文引用格式: 周军,丁涛杰,毛臻. 基于Excel VBA的电源电流检测电路快速参数选定[J]. 电子技术应用,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 引言

对于一个实际的电路系统,需要认真分析它的电源需求,不仅仅要关心输入电压和输出电压,还要细致地考虑电源总功耗问题,因此在设计电源电路前需要先评估每路电源的功耗,然后选择合适的电源IC。在测试电源电路时有时想知道之前评估的电源功耗是否准确,很容易通过电源仪表去观测到输入电源的电流从而计算输入电源的总功耗,但是输入电源经过变换后的每一路的输出电源无法进行实时观测,此时运用电源电流检测IC能实时对各路电源进行电流监测,从而能计算各路电源的功耗。

电源电流检测电路除了检测电流IC外,通常包含电流采样电阻和信号调理电路,最终将调理后的电压信号送至ADC进行采样,在电流转换到电压过程中就涉及了定标问题,本文利用Excel VBA进行快速定标。


本文详细内容请下载:https://www.chinaaet.com/resource/share/2000005325




作者信息:

周军,丁涛杰,毛臻

(中国电子科技集团公司第五十八研究所,江苏 无锡 214035)


此内容为AET网站原创,未经授权禁止转载。