LED dot matrix display composition
LED dot matrix display composition: by a number of LED light-emitting diode package together, is a new display device. In order to illustrate the principle of LED dot matrix display, single-chip as the control core, design and production of a hardware and software, including two parts of the display system. The circuit through the key control can achieve any number of Chinese characters shutter, up and left shift and other display forms, can be widely used in airports, shopping malls, hospitals and other public places for text advertising, information dissemination. And has a small size, the circuit structure is simple and easy to achieve and so on.
System hardware circuit
The hardware part of the display controller consists of three parts: serial communication interface, external memory expansion and LED dot matrix display driver and interface circuit. Generally speaking to show more content, it is necessary to expand the external data memory. Static data memory low cost, low power consumption, read and write speed, we use two static RAM62256 data memory (64KB). To show the contents of the code all stored in 62256 inside.
System software program
The software program is the core of the entire control system. After the system main program begins, the system environment is first initialized, including setting the serial port, timer, interrupt and port. The whole software design is divided into two parts: the display part and the communication part.
Communication part: PC software using Visual Basic programming, the use of VB provides a powerful function of the communication control MSCOMM, the control serial port and serial communication message format and protocol settings, direct use of PC serial port to send data. 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 the software is relatively simple. You can use Microsoft Word to handle the need to display the content (note the width of the page with the LED dot matrix display width should be the same), and then select the edit menu inside the full command and copy the command, and then run the LED display download software V1.1. Select the "clipboard" button in the interface, you need to download the contents can be displayed in the preview box display, check, select the baud rate and connect to the serial port, click the "download" button, you can download the display. Need to modify or to display new content to repeat the above operation can be completed. It is very convenient to use.
Display part: the use of dynamic scanning, to achieve the display of Chinese characters, characters, images and data transmission control and display. The program divides the data memory into three areas: the display buffer, the data store, and the receive buffer. The microcontroller receives the data from the PC through the serial port interrupt, temporarily stores the data in the data storage area according to certain rules after receiving the buffer analysis processing, and then extracts the data from the data in the display mode to the display buffer according to the display mode sequence The Show the way to use progressive scan. PC real-time communication part of the main use of single-chip serial interrupt to receive data, to achieve with the computer data transmission.
