摘要
针对微位移压电陶瓷控制系统数据传输方式单一、通道少、可靠性低等缺点,设计一种FPGA+STM32的多功能压电陶瓷控制系统。该系统以光纤为主通信方案,网络+FSMC总线为备通信方案;并以Artix7系列FPGA芯片为主控芯片,负责接收4路光纤与FSMC总线传输的数据和命令,并行控制19片16通道的DAC81416数/模转换,实现304通道的模拟电压输出,而STM32负责网络与FSMC总线的数据传输控制;同时,采用桥式电路+差分放大电路+模/数转换器的电路设计与温湿度传感器相结合的方式采集环境数据,并通过RS 422接口实现25 Hz频率回传。此外,预留RS 485接口,可控制外部环境测量装置,完成更多环境数据的采集。目前,该系统已成功应用于某光学系统的压电陶瓷位移控制中。测试结果表明,整个系统工作稳定,两种通信方式均可实现高速数据传输,通过配置可实现304通道-5~5 V的模拟电压实时输出,环境数据能按照25 Hz频率实时刷新显示。
In allusion to the disadvantages of single data transmission mode,few channels and low reliability,a multi-functional piezoelectric ceramic control system based on FPGA+STM32 is designed.In the system,the optical fiber is used as the main communication scheme,and network+FSMC bus is used as the backup communication scheme.Artix7 series FPGA chip is the main control chip,which is responsible for receiving data and commands transmitted by 4 optical fibers and FSMC bus,can parallel control 1916-channel DAC81416 digital-to-analog conversion,and realize 304 channel analog voltage output.STM32 is responsible for the data transmission control of the network and FSMC bus.In the system,the circuit design of bridge circuit+differential amplifier circuit+analog-to-digital converter is combined with temperature and humidity sensor to collect environmental data,and realize 25 Hz frequency return by RS 422 interface.The RS 485 interface is reserved in the system,which can control the external environment measurement device to complete more environmental data acquisition.The system has been successfully applied to the piezoelectric ceramic displacement control of an optical system.The testing results show that the whole system can work stably,the two communication modes can realize high-speed data transmission,and the real-time output of 304 channels of-5~5 V analog voltage can be realized by the configuration,and the environmental data can be refreshed and displayed in real time according to the frequency of 25 Hz.
作者
吕才玉
许洋
李学华
邱国星
黄强原
LÜCaiyu;XU Yang;LI Xuehua;QIU Guoxing;HUANG Qiangyuan(College of Electronic Engineering,Chengdu University of Information Technology,Chengdu 610225,China;Chengdu Yuanwang Technology Co.,Ltd.,Chengdu 610101,China)
出处
《现代电子技术》
北大核心
2024年第18期107-113,共7页
Modern Electronics Technique
基金
四川省自然科学基金项目(2022NSFSC0214)。
关键词
压电陶瓷控制系统
FPGA
STM32
光纤通信
网络通信
FSMC总线
环境数据采集
piezoelectric ceramic control system
FPGA
STM32
optical fiber communication
network communication
FSMC bus
environmental data acquisition