电工材料2023No.1谭超等:基于STM32与异步FIFO的乒乓模式高速数据采集系统设计基于STM32与异步FIFO的乒乓模式高速数据采集系统设计谭超,段俊明,辛亮,陈浩然,杨隆,叶先志(三峡大学电气与新能源学院,湖北宜昌443002)摘要:针对电力行业光纤光栅传感器数据采集速率不足、功耗高等问题,设计了一种基于STM32与异步FIFO的高速数据采集系统。该系统以STM32为核心,通过采用TIADC结构来实现双通道交替采样,提高了系统采样率;各通道内利用两片异步FIFO实现乒乓缓存技术,完成了信号数据的高速存储与实时处理,并通过WIFI通信将数据传输到上位机。试验证明:该数据采样系统实现了低功耗的高速数据采集,存储深度为16K,最高采样率可达200Msample/s,可满足电力行业工程需求。关键词:高速数据采集;电力系统;多通道;TIADC;异步FIFO中图分类号:TM761DOI:10.16786/j.cnki.1671-8887.eem.2023.01.014DesignofHigh-SpeedDataAcquisitionSystemBasedonSTM32andPingPongModeofAsynchronousFIFOTANChao,DUANJunming,XINLiang,CHENHaoran,YANGLong,YEXianzhi(CollegeofElectricalEngineeringandNewEnergy,ChinaThreeGorgesUniversity,HubeiYichang443002,China)Abstract:Toslovetheproblemsinsufficientdatacollectionrateandhighpowerconsumptionoffibergratingsensorsinpowerindustry,ahighspeeddataacquisitionsystembasedonSTM32andping-pongmodeofasynchronousFIFOisdesigned.ThecoreofthesystemisSTM32singlechipmicrocomputer,thissystemusesTIADCstructuretorealizedualchannelalternatingsampling,whichimprovesthesamplingrateofthesystem.Ineachchannel,twoAsynchronousFIFOarerealizedping-pongcachingtechnology,whichcompletethehigh-speedstorageandreal-timeprocessingofsignal,andWIFIcommunicationisusedtotransferdatatothehostcomputer.Thetestresultshowsthatthedatasamplingsystemrealizeshigh-speeddataacquisitionwithlowpowerconsumption,thestoragedepthis16K,andthehighestsamplingratecanreach200Msample/s.Keywords:high-speeddataacquisition;Electricpowersystem;multi-channel;TIADC;AsynchronousFIFO引言光纤光栅传感器相对于传统电学传感器具有灵敏度高、体积小、耐腐蚀、抗电磁干扰等优点[1,2],目前已成为电力系统状态监测研究的热点,其在变压器油压测量、电缆温度监测、输配电设备监测等领域都有非常重要的作...