摘要
给出了一种铝型材外形尺寸和孔位在线检测系统的软硬件设计方法。硬件设计中采用飞思卡尔汽车电子芯片MC9S12XET256作为主芯片,采用TCRT5000光电传感器模块作为尺寸检测传感器。软件设计中采用事件驱动方式和非抢占式静态优先级排序方法。综合应用了中断优先级、软件优先级以及函数指针数组的编程方法。经过实验测试、实际生产装配和调试运行,验证了系统设计的检测精度、实时性和可靠性。在保证检测性能的基础上,实现了一块单片机对三条输送线的同时检测。
A design of hardware and software is introduced, which is utilized to test the size and hole places of aluminium profile. In the design of hardware, MC9S12XET256 of Freescale is taken as the main chip and TCRTS000 module, the sensor. The soft- ware design uses event-driven mode and the non-preemptive static priority. This design combines the programming methods of interrupt priority, software priority and function pointer arrays. Finally, the detection accuracy, real-time quality and reliability of the system are verified through testing and actual operation. On the basis of detection performance, the system with one sin- gle-chip realizes its simultaneous detection of three production lines.
出处
《计算机工程与设计》
CSCD
北大核心
2012年第12期4531-4535,共5页
Computer Engineering and Design
关键词
铝型材
在线检测
任务管理
函数指针数组
实时性
aluminium profile
on-line inspection
task management
function pointer array
real-time