摘要
为了实现人机交互界面的高效率开发,设计了基于实时操作系统的通用GUI设计平台,对该平台所采用的命令/数据传输算法和交互界面/主控端同步算法进行研究。使用S3C2440处理器直接驱动TFT液晶屏和四线电阻触摸屏建立硬件平台,接着移植实时系统到该平台,然后利用实时系统中的任务与交互界面中的按键关联的算法和传输数据与系统中断关联的算法,建立惟一的"命令—数据"传输通道,最后通过串口与主控端协同,实现交互界面与主控端的同步。测试结果表明,使用该平台分别设计了主控端程序和与之相配的2阶交互界面,完整地实现了界面的切换,数据/状态的显示,命令/数据的传递,与传统的界面/主控一体化设计方法相比降低了90%以上的调试时间,随着界面复杂度的增加,调试的时间可减少到传统方法的5%以下。基本满足多种场合图形用户界面设计的需要。
To realize a high efficiency development of an interactive interface, an universal GUI platform is designed in this paper, and the command/data transferring algorithm and interactive interface/ master synchrony algorithm are also researched. The hardware of the platform is designed by using a S3C2440 processor to drive the TFT liquid crystal screen and quadded resistance touching screen directly. The following step is transplanting the real-time system into this platform, and building the unique command-data transmission channel according to the algorithms. Finally, the synchrony between the interface and the master is realized by synergism between the serial port and the master. The tests results show that this platform is used to design the master algorithm and the corresponding second-order interactive interface, which can be used to realize the interface switch, the display of data and state and the delivery of command and data. More than 90% of the setting time is reduced com- pared with the traditional method. Furthermore, the setting time may be reduced below 5 % as the interface becomes more and more complex. This platform satisfies the interface design in many occasions.
出处
《液晶与显示》
CAS
CSCD
北大核心
2014年第5期716-720,共5页
Chinese Journal of Liquid Crystals and Displays
基金
国家自然科学基金资助项目(No.60578035
No.50473040
No.60736042)