摘要
介绍了触摸屏接口程序的设计。分析了触摸屏输出数据格式和接口程序设计思想,详细讨论了串行通信中断服务程序、触摸屏数据处理函数以及应用接口函数的设计过程。设计的程序在机舱监控系统中获得成功应用,对类似系统触摸屏接口程序设计具有较好的参考意义。
The design of software of touch screen is introduced in this paper.At first,the format of data output from touch screen is analyzed and the main idea of its software design is given.Then three functions which compose touch screen software are discussed in detail.They are interrupt serve program of serial port,touch data handle function and application interface function.The software designed in this paper has been applied to marine engine room monitoring system successfully and can be used to other similar application system too.
出处
《工业控制计算机》
2012年第2期7-9,共3页
Industrial Control Computer
基金
辽宁省教育厅科技研究项目(2008S031)
关键词
触摸屏
接口
串行通信
按钮
消抖动
touch screen
interface
serial port
button
eliminate vibration