摘要
为增加热电偶测温点数,保证测温的实时性,基于剥夺式内核UCOSIII操作系统和STM32F4单片机,设计实现了时间片轮转调度实时热电偶测温序列。测温序列共20个测温点,采用MAX6675芯片实现对K型热电偶的A/D转换与冷端补偿,测温序列共用一组SPI总线,通过互斥信号量实现测温任务间切换。基于STemWin设计制作了人机交互界面,通过触摸按钮实现测温任务的创建、恢复与挂起,通过LCD提供人机交互渠道,定义任务标志寄存器TEMS_FLAG实时记录测温任务的运行状态。实验证明,系统的运行稳定,操作简便,可应用在工业测温现场。
To increase the number of thermocouple temperature points,and guarantee the real-time performance,a real-time thermocouple temperature measurement sequence for time slice rotation scheduling was designed and implemented based on the deprivation kernel UCOSIII operating system and STM32F4 microcontroller.The sequence had 20 measurement points,using the MAX6675 chip to realize AD conversion and cold junction compensation for K type thermocouple,and the measurement sequences shared a group of SPI buses,the measurement tasks switched between tasks with a mutex semaphore.A interactive interface was designed and manufactured based on STemWin,and the system created,restored,and suspended tasks with the touch of buttons,as well as provided interaction channels through LCD,and defined the task flag register TEMS_FLAG to record the running status of measurement task.According to the experiments,the system is stable,easy to operate,and can be used in industrial temperature measurement.
作者
王子权
周小超
林华
WANG Zi-quan;ZHOU Xiao-chao;LIN Hua(School of Mechanical Engineering,Hefei University of Technology,Hefei 230009,China)
出处
《仪表技术与传感器》
CSCD
北大核心
2019年第9期23-27,共5页
Instrument Technique and Sensor