中国半导体行业协会封装分会会刊

中国电子学会电子制造与封装技术分会会刊

导航

电子与封装 ›› 2023, Vol. 23 ›› Issue (5): 050306 . doi: 10.16257/j.cnki.1681-1070.2023.0053

• 电路与系统 • 上一篇    下一篇

一种电压采集电路的FPGA程序设计

吕思宇;顾林;倪云龙;王传宇;刘伟   

  1. 中国电子科技集团公司第五十八研究所,江苏 无锡?214035
  • 收稿日期:2022-11-15 出版日期:2023-05-23 发布日期:2023-05-23
  • 作者简介:吕思宇(1985—),男,河北承德人,硕士,工程师,主要研究方向为FPGA可编程逻辑器件设计与仿真。

ProgramDesign of FPGA in Voltage-Acquisition Circuit

LYu Siyu, GU Lin, NI Yunlong, WANG Chuanyu, LIU Wei   

  1. China Electronics Technology GroupCorporation No.58 Research Institute,Wuxi 214035, China
  • Received:2022-11-15 Online:2023-05-23 Published:2023-05-23

摘要: 设计了一种基于模数转换器AD7298的电压采集电路的FPGA程序,使用FPGA通过串行外设接口(SPI)对AD7298进行配置,以启动对待测设备开关量电压值的采集,然后将获取的电压值通过SPI上传给FPGA,再由FPGA转发给ARM处理器进行处理和显示。FPGA功能仿真结果表明,电压波形正常,现场功能测试实验结果显示,电压数据采集功能正常,且读取到的电压值正确,验证了程序设计的正确性。

关键词: 电压采集电路, 模数转换器, FPGA, SPI

Abstract: An FPGA program of voltage-acquisition circuit based on the analog-to-digital converter AD7298 is designed. The AD7298 is configured through serial peripheral interface (SPI) by FPGA to initiate the acquisition of the switching voltage value of the device under test. Then the voltage value is passed to FPGA through SPI, and then transferred to ARM processer by FPGA to process and display. The FPGA function simulation is made, the results show that the voltage waveform is normal. The testing results show that the function of voltage-acquisition is realized, and the voltage value is correct, which validate the correctness of the program design.

Key words: voltage-acquisition circuit, analog-to-digital converter, FPGA, SPI

中图分类号: