YANG Li-shen, ZHANG An-wei, WANG Lei, WEI Lan. Research and realization of μC/GUI external word stock on spi flash based on STM32[J]. , 2015,30(2): 290-295
YANG Li-shen, ZHANG An-wei, WANG Lei, WEI Lan. Research and realization of μC/GUI external word stock on spi flash based on STM32[J]. , 2015,30(2): 290-295 DOI: 10.3788/YJYXS20153002.0290.
Research and realization of μC/GUI external word stock on spi flash based on STM32
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 possesses favorable commonality and flexibility.
关键词
Keywords
references
黄健. 基于MiniGUI的UCDOS字库接口实现[J]. 计算机工程,2011,37(1):273-279. Huang J. Implementation of UCDOS font interface based on MiniGUI [J]. Computer Engineering,2011,37(1):273-279. (in Chinese)[2] 葛欣,孟凡荣. 使用μC/GUI开发图形用户界面[J]. 计算机工程与设计,2005,26(1):1-3. Ge X, Meng F R. UsingμC/GUI to develop graphical user interface [J]. Computer Engineering and Design, 2005, 26(1):1-3. (in Chinese)[3] 田志宏,徐军. 嵌入式μC/GUI的移植与平台开发[J]. 自动化与仪表,2007(3):76-79. Tian Z H, Xu J. Transplant of embeddedμC/GUI and development of platform [J]. Automation & Instrumentation, 2007 (3):76-79. (in Chinese)[4] 刘滨,刘兵,赵艳华. 基于μC/GUI的嵌入式图形界面设计[J]. 液晶与显示,2005,20(6):558-662. Liu B, Liu B, Zhao Y H. Embedded graphical interface design based onμC/GUI [J]. Chinese Journal of Liquid Crystals and Displays, 2005, 20(6):558-662. (in Chinese)[5] 吴燕燕,贺锋涛,孙林军. 基于LPC214X平台的μC/GUI移植研究[J]. 液晶与显示,2012,27(3):338-341. Wu Y Y, He F T, Sun L J. Transferability of μC/GUI on LPC214X platform [J]. Chinese Journal of Liquid Crystals and Displays, 2012, 27(3):338-341. (in Chinese)[6] 张兵,陈光. 基于SOPC的μC/GUI移植开发[J]. 光电子技术,2012,32(3):195-199. Zhang B, Chen G. Transplant of μC/GUI based on SOPC builder [J]. Optoelectroinc Technology, 2012, 32(3):195-199. (in Chinese)[7] 王海霞,武一. 基于SOPC的LCD显示模块的设计[J]. 液晶与显示,2012,27(4):508-514. Wang H X, Wu Y. Design and implementation of LCD module based on SOPC [J].Chinese Journal of Liquid Crystals and Displays, 2012, 27(4):508-514. (in Chinese)[8] 罗卫兵,胡健生. 基于STM32+ucGUI的北斗导航定位系统设计[J]. 液晶与显示,2014,29(2):195-201. Luo W B, Hu J S. Design of Beidou navigation system based on STM32&ucGUI [J]. Chinese Journal of Liquid Crystals and Displays,2014, 29(2):195-201. (in Chinese)[9] 童超,金庆辉,赵建龙. 一种用于POCT的嵌入式实时图像采集处理系统[J]. 光学精密工程,2008,16(4):720-725. Tong C, Jin Q H, Zhao J L. Novel real time image collection system for point-of-care test [J].Optics and Precision Engineering, 2008,16(4):720-725. (in Chinese)[10] 王晓东,刘文耀,金月寒,等.基于DSP和CPLD的激光雷达图像采集和显示集成系统[J]. 光学精密工程,2004,12(2):190-194. Wang Y D, Liu W Y, Jin Y H, et al. Laser radar image acquisition and display integrated system based on DSP and CPLD [J]. Optics and Precision Engineering, 2004, 12(2):190-194. (in Chinese)[11] 覃爱娜,汪晓问,桂卫华. 基于LCM与字库芯片的中英文字符显示技术[J]. 信息技术,2012(8):28-32. Tan H N, Wang X W, Gui W H. Technology of displaying Chinese and western characters based on LCM and font chip[J]. Information Technology, 2012(8):28-32. (in Chinese)[12] 冯月芹,汤小龙. 高通字库芯片GT23H32S4W的应用[J]. 单片机与嵌入式系统应用,2013(12):45-47. Feng Y Q, Tang X L. Application of GT23H32S4W Chinese character library chip [J]. Microcontrollers & Embedded Systems, 2013(12):45-47. (in Chinese)[13] 宋玉贵,尹艳玲. 基于LPC1788 Emwin中文显示的设计与研究[J]. 工具技术,2013,47(7):24-26. Song Y G, Yin Y L. Design of displaying in Chinese based on LPC1788 Emwin [J]. Tool Engineering, 2013, 47(7):24-26. (in Chinese)