液晶与显示, 2015, 30 (1): 70, 网络出版: 2015-04-14
S3C2440A在步进电机控制器人机交互中的应用
Application of S3C2440A in human-computer interaction of stepping motor controller
人机交互 步进电机控制器 触摸屏 液晶显示器 human-computer interaction stepping motor controller touch-screen liquid crystal display
摘要
为实现步进电机控制器系统升级,深入探讨了S3C2440A在步进电机控制器人机交互接口中的应用.S3C2440A内部具有专用的触摸屏接口和LCD控制器,可方便实现与触摸屏和LCD的无缝连接.在介绍步进电机控制器结构的基础上,给出了S3C2440A与触摸屏和LCD的接口电路,并对其应用程序设计进行了详细分析.通过等待中断模式和X/Y坐标连续转换模式的结合实现触摸屏触点信息的采集,并介绍了触摸屏的三点校正方法,最后给出了示例代码.以320×240 TFT LCD为例,对LCD控制器的时序、缓冲区设置和显示数据格式进行了详细分析,同样给出了应用程序代码.最后,完成了系统运行实验.实验结果表明,S3C2440A与触摸屏和LCD接口方便,采用该结构可简化硬件系统设计,并减轻系统运行负荷.整个系统运行可靠.
Abstract
In order to upgrade the stepping motor controller,the application of S3C2440A in human-computer interaction of stepping motor controller was discussed in detail.The special touch-screen interface and LCD controller in S3C2440A could connect with touch-screen and LCD directly.Based on introducing the architecture of stepping motor controller,circuits among S3C2440A,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×240 TFT LCD.Also,the applied programming codes were given.At last,the above codes were executed in practical system.Result shows that connection between S3C2440A,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.
徐正平, 许永森. S3C2440A在步进电机控制器人机交互中的应用[J]. 液晶与显示, 2015, 30(1): 70. XU Zheng-ping, XU Yong-sen. Application of S3C2440A in human-computer interaction of stepping motor controller[J]. Chinese Journal of Liquid Crystals and Displays, 2015, 30(1): 70.