摘要
本論文主要闡述了以單片機為處理器的顯示電路的硬件、軟件設計、系統編程等方面的問題。本驅動系統采用ATMEL公司的AT89S52單片機作為核心處理器控制整個系統的工作,系統由STV7697串行輸入并行輸出控制電路、鍵盤、顯示電路、串行通信電路等構成。系統經過調試和測試,可以實現:字符的靜態顯示以及動態顯示,可通過鍵盤實現掃描方式的改變同時可以將字模數據通過PC傳給串口,也可以通過串口傳給PC,實現實時顯示。
硬件方面,以STV7697作為64*16 LED顯示屏數據電極的驅動芯片,以單片機為核心控制模塊,通過對列數據信號與行掃描信號的控制,在LED顯示屏上實現有較高刷新率的圖形顯示功能。鍵盤采用了點觸式按鍵;輸出控制電路與由CD4514、ULN2803等組成。軟件設計采取了流行的模塊化編程方法和模塊調試,軟件程序的開發全部采用了C51語言。其主要包含的程序有:主程序、鍵盤掃描子程序、數據串行移位輸入,并行輸出子程序、串行接收和發送子程序、LED顯示子程序等。
經過實驗室的連續調試證明:實驗測試結果表明,該系統具有穩定、實用、響應速度快、驅動功率大等方面的優勢。
另外,本文對顯示驅動控制系統今后的進一步發展和完善提出了幾點建議。
關鍵詞:STV7697,顯示驅動,單片機
DRIVE FOR DISPLAY CIRCUIT SYSTEM BASE ON STV7697 (SOFTWARE DESIGN)
Abstract
This paper elaborated on hardware and software design for display circuit and system programming. Based on SCM. The drive system which by composition of the keyboard, display circuit, serial communication circuits and serial input parallel output control circuit, used ATMEL's AT89S52 SCM as a MCU control the whole system. After testing and commissioning, The system can be achieved: Static and dynamic display, The way of the scan can be changed through the keyboard, Besides, Zimo data can be passed from PC to SCM through the serial port, It can also be passed from SCM to PC. Thus it can achieve real-time display.
As far as the designed of hardware is concerned, We choose the STV7697 as a 64*16 LED drive chip and the SCM as a MCU which produce the control signals. In this way, We can obtaining a high refresh rates display. The keyboard has adopt point to touch the dyadic button; The output control circuit is composition of the CD4514 and ULN2803 and so on. The development of software adopts the popular modularized structure and the modularized debug facilities. The design of software adopts C51 language entirely. The primary program is composed of main function, keyboard scanning function, serial data transfer and paralled output function, serial transmit and receive function, displaying function of LED and so on.
The successive debug experiments prove that the system is characterized by high reliability, capable control function, fast response and big power. In addition, There are some suggestions about the further development and improvement of the drive for display system in this paper.
Key words: STV7697, drive for display, SCM