摘要
针对LED屏控制器设计提出了一些新的方法。快速移位法使移位速度提升33%。协议树的引入使通信协议的描述、解释和扩充更加快捷;应用循环缓冲区可有效避免通信缓冲区溢出引发的程序异常;显示双缓冲区的使用不仅简化了显示帧设计而且便于设计代码移植;基于优先级的主程序结构可优先且多次响应重要任务。运用这些方法可以显著提高控制器开发效率和运行稳定性。
This article provides some new designs for the controller of LED display screen.The data shift speed can be raised 33 percent quicker with the fast shift approach.The introduction of protocol tree makes it convenient to depict,interpret and extend the communication protocol.Software exception induced by communication buffer overflow can be avoided effectively via resorting circular buffer.The use of double buffer for display simplifies the design of display frame as well as facilitates the design of code porting.Main program architecture based on priority makes it possible to respond important tasks with precedence and frequently.By applying these methods,the development efficiency of controller and its running stability can be conspicuously enhanced.
出处
《计算机应用与软件》
CSCD
2011年第3期188-190,共3页
Computer Applications and Software