摘要
本論文主要闡述了以單片機(jī)為處理器的顯示電路的硬件、軟件設(shè)計(jì)、系統(tǒng)編程等方面的問題。本驅(qū)動(dòng)系統(tǒng)采用ATMEL公司的AT89S52單片機(jī)作為核心處理器控制整個(gè)系統(tǒng)的工作,系統(tǒng)由STV7697串行輸入并行輸出控制電路、鍵盤、顯示電路、串行通信電路等構(gòu)成。系統(tǒng)經(jīng)過調(diào)試和測試,可以實(shí)現(xiàn):字符的靜態(tài)顯示以及動(dòng)態(tài)顯示,可通過鍵盤實(shí)現(xiàn)掃描方式的改變同時(shí)可以將字模數(shù)據(jù)通過PC傳給串口,也可以通過串口傳給PC,實(shí)現(xiàn)實(shí)時(shí)顯示。
硬件方面,以STV7697作為64*16 LED顯示屏數(shù)據(jù)電極的驅(qū)動(dòng)芯片,以單片機(jī)為核心控制模塊,通過對列數(shù)據(jù)信號(hào)與行掃描信號(hào)的控制,在LED顯示屏上實(shí)現(xiàn)有較高刷新率的圖形顯示功能。鍵盤采用了點(diǎn)觸式按鍵;輸出控制電路與由CD4514、ULN2803等組成。軟件設(shè)計(jì)采取了流行的模塊化編程方法和模塊調(diào)試,軟件程序的開發(fā)全部采用了C51語言。其主要包含的程序有:主程序、鍵盤掃描子程序、數(shù)據(jù)串行移位輸入,并行輸出子程序、串行接收和發(fā)送子程序、LED顯示子程序等。
經(jīng)過實(shí)驗(yàn)室的連續(xù)調(diào)試證明:實(shí)驗(yàn)測試結(jié)果表明,該系統(tǒng)具有穩(wěn)定、實(shí)用、響應(yīng)速度快、驅(qū)動(dòng)功率大等方面的優(yōu)勢。
另外,本文對顯示驅(qū)動(dòng)控制系統(tǒng)今后的進(jìn)一步發(fā)展和完善提出了幾點(diǎn)建議。
關(guān)鍵詞:STV7697,顯示驅(qū)動(dòng),單片機(jī)
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