欢迎登录材料期刊网

材料期刊网

高级检索

为了解决μC/GUI 中文字库占用空间大与 MCU 内部存储空间有限的矛盾,实现μC/GUI 对中文更全面完整的支持,对μC/GUI 外置汉字字库的实现方法进行研究,提出了将汉字字库存储于外置 spi flash 芯片的解决方案。首先对汉字存储相关的数据结构进行研究,编写 spi flash 芯片驱动程序,之后利用 PC 串口编写软件和串口中断处理函数将字库文件写入到外置 flash 芯片中。然后在中文字库成功写入 flash 芯片内部的基础上,对μC/GUI 中与字符显示相关的内核函数进行修改,完成对所有显示字符属性的判断,从而实现μC/GUI 对外部中文字库的支持。试验结果表明,外置字库中的汉字成功地在液晶屏上显示出来。存储于外置 spi flash 芯片中的字库能被μC/GUI 正常的调用和显示。外置spi flash 字库节省了 MCU 内部有限的存储空间,具有较好的通用性和灵活性。

The word stock of μC/GUI takes up too much space but the storage space of MCU is limited.In order to solve this contradiction,the method to realize the external Chinese word stock of μC/GUI is explored.The scheme storing the word stock in the external spi flash chip is put forward.And this scheme supports the Chinese forμC/GUI more comprehensive and more complete.First,the data structure related to Chinese character’s storage are studied.The driver program of the spi flash is written and the word stock file is stored in the external flash chip through the PC serial port software and serial port interrupt handler. Then,the kernel functions related to the character display is modified to judge the character properties,thus making μC/GUI support the external Chinese word stock based on storing the word stock in the flash chip successfully.Results of the trial indicates that the Chinese character stored in the external chip can be displayed on the ILI9320 LCD and the word stock stored in the external chip can be called and displayed by the μC/GUI normally.Storing the word stock in the external spi flash chip saves the MCU space and posses-ses favorable commonality and flexibility.

参考文献

[1] 黄健.基于 MiniGUI 的 UCDOS 字库接口实现[J].计算机工程,201137(01):273-279.
[2] 葛欣;孟凡荣.使用 μC/GUI 开发图形用户界面[J].计算机工程与设计,200526(01):1-3.
[3] 田志宏;徐军.嵌入式 μC/GUI 的移植与平台开发[J].自动化与仪表,2007(03):76-79.
[4] 刘滨;刘兵;赵艳华.基于 μC/GUI 的嵌入式图形界面设计[J].液晶与显示,200520(06):558-662.
[5] 吴燕燕;贺锋涛;孙林军.基于 LPC214X 平台的 μC/GUI 移植研究[J].液晶与显示,201227(03):338-341.
[6] 张兵;陈光.基于 SOPC 的 μC/GUI 移植开发[J].光电子技术,201232(03):195-199.
[7] 王海霞;武一.基于 SOPC 的 LCD 显示模块的设计[J].液晶与显示,201227(04):508-514.
[8] 罗卫兵;胡健生.基于 STM32+ucGUI 的北斗导航定位系统设计[J].液晶与显示,201429(02):195-201.
[9] 童超;金庆辉;赵建龙.一种用于 POCT 的嵌入式实时图像采集处理系统[J].光学精密工程,200816(04):720-725.
[10] 王晓东;刘文耀;金月寒.基于 DSP 和 CPLD 的激光雷达图像采集和显示集成系统[J].光学精密工程,200412(02):190-194.
[11] 覃爱娜;汪晓问;桂卫华.基于 LCM 与字库芯片的中英文字符显示技术[J].信息技术,2012(08):28-32.
[12] 冯月芹;汤小龙.高通字库芯片 GT23 H32S4W 的应用[J].单片机与嵌入式系统应用,2013(12):45-47.
[13] 宋玉贵;尹艳玲.基于 LPC1788 Emwin 中文显示的设计与研究[J].工具技术,201347(07):24-26.
上一张 下一张
上一张 下一张
计量
  • 下载量()
  • 访问量()
文章评分
  • 您的评分:
  • 1
    0%
  • 2
    0%
  • 3
    0%
  • 4
    0%
  • 5
    0%