1 Introduction
The system uses the newly launched AT89S51 of ATMEL as the main control chip. The single-chip microcomputer completes the communication with the PC, and also completes data storage, cyclic display, etc. The system can run offline, and has the characteristics of simple structure, convenient maintenance, fast display refresh speed, and low cost. With the online download program, the displayed content can be updated at any time, and the size of the display area can be changed by cascading, which is very convenient to use.
This paper designs a monochrome LED display control system with equal grayscale. The control system uses AT89S51 as the controller and adopts RS-232 communication standard. It can display Chinese characters, characters, numbers or monochrome pictures.
2 Composition of LED display system
2.1 Principle block diagram and hardware circuit structure
The display screen control system consists of a display controller and an LED dot matrix display screen. The structural block diagram of the control system is shown in Figure 1. It is mainly composed of a microprocessor, a communication circuit, a data storage device, a display circuit, etc.
2.2 AT89S51 chip
This display system uses the newly launched AT89S51 from ATMEL as the main control chip. AT89S51 has the same core and pin arrangement as INTEL's 8051. Table 1 is the internal function table of AT89S51. In addition to all the functions of 8051, AT89S51 also has some practical functional components built in. For example, the internal program memory of AT89S51
is a 4KB erasable flashROM. The entire process of downloading program code only takes a few seconds, which is very convenient to use. The internal program memory of 8051 is a 4KB PROM, which can only write program code once and cannot be modified later. In addition, AT89S51 provides an ISP download interface. It is very suitable for the design or development of single-chip microcomputer application systems.
3 Introduction to system hardware circuit
The hardware circuit of the display controller is mainly composed of three parts: external memory expansion, serial communication interface and LED dot matrix display driver and interface circuit.
Generally speaking, there are many contents to be displayed, so it is necessary to expand the external data memory. Static data memory has low cost, low power consumption, and fast read and write speed. We use two pieces of static RAM 62256 data memory (total 64KB). All the content codes to be displayed are stored in 62256.
The interface circuit between 62256 and single-chip microcomputer is shown in Figure 2. The displayed content code is downloaded to 62256 through the serial interface. The serial communication interface circuit is shown in Figure 3, which is connected to the serial port of PC through MAX232E. The LED display driver and interface circuit is shown in Figure 4. The control signal is divided into two paths after passing through the buffer 74LS245. One path is decoded by CD4515 and then driven by TIP127 to drive the row of the dot matrix; the other path is driven by the data shift register 74HC595 to drive the column of the dot matrix. When multiple display units are cascaded, just connect the input of the next level to the output of the previous level accordingly.
[page]
Figure 3 Communication circuit between AT89S51 and PC
4 Software Programs
The software program is the core part of the entire control system. The entire software design is mainly divided into two parts: the display part and the communication part. The display part adopts a dynamic scanning method to realize the transmission control and display functions of the Chinese characters, images, characters and other data information to be displayed on the display screen. The data storage is divided into three areas in the program: display buffer, data storage area and receiving buffer. The single-chip microcomputer receives the data from the PC through the serial port interrupt, temporarily stores it in the receiving buffer, and after analysis and processing, it is stored in the data storage area according to a certain rule, and then the data is taken out from the data storage in turn according to the display mode and put into the display buffer for display. The display adopts a line-by-line scanning method. Figure 5 is a program flow chart for displaying a screen of characters. The real-time communication part with the PC mainly uses the single-chip microcomputer serial port interrupt to receive data information to realize data information transmission with the computer. Its program flow chart is shown in Figure 6.
[page]
The upper computer software of the communication part is programmed in Visual Basic (VB for short). VB provides a powerful communication control MSCOMM, which can set the serial port status and the information format and protocol of serial communication, and directly use the serial port of the PC to send data. In order to achieve reliable communication between the microcontroller and the PC, it is necessary to ensure that both parties have the same data format and baud rate. The use of this software is relatively simple, as shown in Figure 7. When using it, you can first use Microsoft Word to process the content to be displayed (note that the width of the page setting should be the same as the width of the LED display), then select the Select All command and Copy command in the Edit menu, and then run the LED display download software V1.1. Select the "From Clipboard" button in the interface, and the content to be downloaded and displayed can be displayed in the preview box on the right. After checking that it is correct, select the appropriate baud rate and the connected serial communication port, and press the "Download" button to download it to the display screen for display. Repeat the above operations when you need to modify or display new content. It is very convenient to use.
5 Conclusion
The dot matrix LED display control system designed in this paper is based on the AT89S51 single-chip microcomputer, uses static RAM as data storage, and uses a serial interface to achieve data transmission with a PC. The anti-interference ability of the single-chip microcomputer is also taken into account in the system design, which effectively improves the reliability of the system operation. It can be directly applied to actual occasions. It can realize the display of Chinese characters, characters, numbers and other contents. The displayed content can be updated at any time. It is very convenient to use.
Previous article:AT89C51 serial-to-parallel conversion driving digital tube experiment guide
Next article:Direct Utilization of Dual Data Pointers in Keil C51
Recommended ReadingLatest update time:2024-11-16 22:02
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Serial line transmission distance
- C6678 SPI Flash boot failure
- Design of a USB reader based on embedded system
- EEWORLD University ---- CMOS Analog Circuit Video Lecture EECS240
- Combinational Logic and Sequential Logic.zip
- VCU Development and Testing
- How to Place an Inductor on a Switch Mode Power Supply PCB
- FPGA implementation of audio embedded in SDI.pdf
- GPRS network structure
- [UFUN Learning] The first program download and PWMLED test