摘要
为实现步进电机控制器系统升级,深入探讨了S3C2440A在步进电机控制器人机交互接口中的应用。S3C2440A内部具有专用的触摸屏接口和LCD控制器,可方便实现与触摸屏和LCD的无缝连接。在介绍步进电机控制器结构的基础上,给出了S3C2440A与触摸屏和LCD的接口电路,并对其应用程序设计进行了详细分析。通过等待中断模式和X/Y坐标连续转换模式的结合实现触摸屏触点信息的采集,并介绍了触摸屏的三点校正方法,最后给出了示例代码。以320×240TFT LCD为例,对LCD控制器的时序、缓冲区设置和显示数据格式进行了详细分析,同样给出了应用程序代码。最后,完成了系统运行实验。实验结果表明,S3C2440A与触摸屏和LCD接口方便,采用该结构可简化硬件系统设计,并减轻系统运行负荷。整个系统运行可靠。
In order to upgrade the stepping motor controller,the application of S3C2440 Ain humancomputer interaction of stepping motor controller was discussed in detail.The special touch-screen interface and LCD controller in S3C2440 Acould connect with touch-screen and LCD directly.Based on introducing the architecture of stepping motor controller,circuits among S3C2440 A,touch-screen and LCD were given,and related application programming design was analyzed deeply.The information of touched point on touch-screen was sampled by combining interrupting mode and X/Y coordinate sequential conversion mode,meanwhile three-points calibration method was introduced.At last,sampling codes were given.The scheduling,buffer setting and displaying data format of LCD controller were analyzed based on 320×240TFT LCD.Also,the applied programming codes were given.At last,the above codes were executed in practical system.Result shows that connection betweenS3C2440 A,touch screen and LCD is convenient.So the hardware-design and load of the system could be predigested with this architecture.This system runs well in the application.
出处
《液晶与显示》
CAS
CSCD
北大核心
2015年第1期70-76,共7页
Chinese Journal of Liquid Crystals and Displays
基金
吉林省科技发展计划资助项目(No.20140520114JH)
中国科学院航空光学成像与测量重点实验室开放基金(No.Y2HC1SR12B)
关键词
人机交互
步进电机控制器
触摸屏
液晶显示器
human-computer interaction
stepping motor controller
touch-screen
liquid crystal dis-play