基于网络型电能质量监测装置的硬件结构和功能,给出了在RealViewMDK开发环境下向LPC2478微处理器移植μC/OS-Ⅱ嵌入式实时操作系统的过程,阐述了集成μC/GUI图形接口的实现步骤。给出了LPC2478微处理器针对液晶屏AT056TN52的驱动程序及利用GPIO中断实现键盘功能的方法。根据所提出的人机交互界面设计思路以及优先级的合理分配完成了具体程序的编写,最终实现了界面友好、功能强大的人机交互功能。
Based on network-based electrical energy quality monitoring device structure and function of the hardware,in the development environment of RealView MDK,the transplant process of embedded real-time operating system μC/OS-Ⅱ to LPC2478 microcontroller was given.μC/GUI graphical interface implementation steps was described.The driver of TFT-LCD AT056TN52 for LPC2478 and the method of keyboard achieved by GPIO interrupt was given.According to the ideas of human-computer interface design and rational allocation of priority,the code was completed.Friendly interface and powerful human-computer interaction function was achieved ultimately.