摘要
针对传统液晶显示编程工作量大、繁琐,且程序形成后,再进行修改比较困难的缺点,提出了基于可扩展标志语言(Extensible Markup Language,XML)技术编程的一种新方法。这种方法把显示内容和显示算法分开,由PC绘制显示内容并转换成基于XML标准的文件存储到单片机的ROM中,而显示算法只需根据显示文件的格式进行判断调用相应的函数。这种运用XML技术实现液晶显示编程,不仅提高编程的效率、增强程序的可维护性,而且大大减小程序占用的空间。
The disadvantages of traditional programming method for LCD are burden-some,complicatedanddifficulttomodify after complete. To avoid these limita-tions,anovelprogrammingmethodfor LCD based on XML (Extensible Markup Lan-guage)is put forward in this paper. The advantage of this programming method is to separate display content from display arithmetic. The display content is achieved by PC and transformed to display file that is based on XML and saved in ROM of SCM. The display arithmetic only need to identify the display file format and call corresponding function. This programming method may improve programming efficiency, make maintenance to be easy and decrease the size of program greatly.
出处
《现代显示》
2005年第3期55-58,共4页
Advanced Display