Design of dot matrix electronic display screen based on SPCE061A

Publisher:真诚相伴Latest update time:2012-01-07 Keywords:SPEC061A Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

无忧电子开发网 http://www.51kaifa.com

In some public places such as stations, shopping malls, stock exchanges, factories and mines, it is often necessary to use LED (light-emitting diode) electronic display screens to release real-time and changing information or conduct advertising. LED electronic display screens are required to have functions such as easy modification, real-time mixed dynamic display of graphics and characters, and adjustable brightness. It is very important to use a computer to operate it and set it with a keyboard.

In order to solve the problems of slow speed, complex structure, difficult program design and single function of LED dot matrix driver based on 8-bit single-chip microcomputer, this system adopts high-speed SPCE061A single-chip microcomputer, which not only improves the scanning speed, but also ensures the realization of dynamic screen character display, graphic display, voice broadcast and voice control. In particular, after the system adds the adjustable screen brightness function, the average current passing through the LED is limited; and because the power supply of SPCE061A is 3.3~5.0V, it can reduce power consumption, protect LED, and extend the service life of dot matrix electronic display screen.

2Electronic display function

The dot matrix electronic display screen designed in this paper based on SPCE061A realizes Chinese characters, characters, numbers, real-time time

Dynamic display of information, such as the ability to scroll the screen left and right, up and down, and set the display speed. Manual or photosensitive automatic adjustment of LED display brightness.

The system display mode can be set at any time through the computer human-machine interface and control screen keyboard.

This system has the function of saving information after power failure. After power failure, the main controller can save information such as display content and display mode in Flash, and can continue to display after power is turned on again.

In addition, the system has voice function, which can regularly announce the time and display real-time content; simple voice control can be performed using voice recognition technology.

3. Display screen hardware circuit design

The LED dot matrix display consists of 8*8, a total of 64 light-emitting diodes. When controlling, the 8 row control ports of the anode and the 8 column control ports of the cathode are controlled separately. When displaying, the font is sent to the anode and the selection signal is sent to the cathode. Send out a row of fonts, then send the selection signal, and then send the font and selection signal of the second row. After scanning 8 times in a cycle, a character can be displayed on a dot matrix. 16*16 LEDs are used to display Chinese characters, so a display unit consists of 4 8*8 dot matrices. Send two bytes of fonts and 16 column selection signals at a time.

The dot matrix display system uses the Lingyang 16-bit single-chip microcomputer SPCE061A as the control core, and consists of an LED dot matrix electronic display, power supply, current drive circuit, address decoding circuit, serial interface circuit, keyboard, clock module and computer control interface. The system block diagram is shown in Figure 1.

Figure 1 Block diagram of dot matrix electronic display system

3.1 Main controller function

This design uses a 16-bit SPCE061A microcontroller. The main frequency of this microcontroller can reach up to 49MHz, the processing speed is very fast, and the main frequency can be adjusted by software, which can effectively solve the problem of screen flickering. It has rich hardware resources, with 32KB flash memory and 2KB RAM inside, which can complete large data storage without external memory expansion, greatly simplifying the peripheral interface circuit; 32 general I/O ports are designed for low power consumption. In power saving mode, the clock stops and the power consumption is only 2uA/3.6V. In addition, the chip supports online simulation and programming interface, which can facilitate online debugging.

SPCE061A has rich voice functions. It has a 10-bit DAC (digital-to-analog converter), a built-in microphone amplifier and automatic gain control (AGC) function for the microphone input channel [1] ; its integrated development environment is also equipped with a rich voice interface function API. It provides a rich software and hardware environment for expanding the voice function of this system.

3.2 Driving Circuit

The driving circuit is divided into a row driving circuit and a column driving circuit. The row driving circuit is shown in FIG2 .

Figure 2 Row drive circuit

The row driver is the anode of the LED. Its principle is to send out current to make the diode light up. It is composed of 74HC595 and driver chip ULN2803. The main controller sends the font to the serial-to-parallel device 74HC595 that controls the anode in a serial manner. 74HC595 is a CMOS TTL device with low power consumption and a speed of up to 100MHz, which is suitable for LED display driver [2] . Each display unit is controlled by two 74HC595 cascades. One display unit requires two 74HC595s. The font data signal is sent out by the main controller separately, and the clock and other control signals are sent out simultaneously through the same I/O port. This can avoid mutual interference and enable flexible control. The driving capacity of the TTL level is limited and can only drive 8 TTL devices. When there are more display units, the driving capacity is insufficient and the signal may be mistransmitted. The solution is to add a 74HC245 to convert one signal into 8 outputs, which improves the driving capacity and ensures the accuracy of the signal. Since the scanning speed of dynamic scanning must reach above 60HZ, otherwise flickering will occur, it is very important to increase the scanning speed. In the program, the fonts of each unit in the buffer are integrated into a number and sent out in parallel to increase the scanning speed. 74HC595 sends the font to the anode of ULN2803 to drive the LED. ULN2803 is an 8-way Darlington tube with strong driving ability. The maximum input current of a single channel can reach 500mA; since ULN2803 cannot output high level, a suitable pull-up resistor must be added when driving to obtain a suitable driving current.

The column driver controls the cathode of the LED. The principle is that the input current also uses ULN2803 as the column driver. The dot matrix display must be displayed dynamically. Only one column can be selected at any time. The corresponding columns of each display unit are specially designed to be connected together. In this way, the cycle of scanning one display unit completes the scanning of the entire display screen, which improves the scanning speed. The 16-channel selection signal of a display unit is first sent by the 4-16 decoder 74154 and then sent to the column driver. Since ULN2803 is a reverse drive, 7406 is added between 74154 and ULN2803 as a reverse.

3.3 Brightness adjustment circuit

The brightness of the display is adjusted by changing the voltage of VCC to adjust the current flowing through the LED. Automatic brightness adjustment uses a photoresistor or phototransistor to detect the external light intensity and automatically adjusts the LED brightness according to the light intensity. The brightness adjustable circuit is shown in Figure 3.

Figure 3 Brightness adjustable circuit

The first part is the automatic brightness adjustment circuit. RW1/RW2 controls the highest/lowest output voltage of automatic adjustment. RW3 controls the sensitivity to external light. R2 and C2 form a first-order low-pass filter to filter out the high-frequency interference of external interference light (such as fluorescent lamps) on the system. The second part is the manual brightness adjustment circuit. RW5 provides an adjustable voltage for the subsequent LM317 adjustment segment. The third part is the maximum output voltage protection circuit to adjust RW4 to set the highest output voltage. A three-state switch SW1 is used to switch between two working modes. When working mode 1 is selected, the brightness can be adjusted manually; when working mode 2 is selected, the clamping circuit works, and the LM317 outputs the maximum voltage, and the brightness is brightest at this time; when working mode 3 is selected, the brightness is automatically adjusted.

3.4 Clock Module

The clock module uses DS1302. This is a high-performance, low-power, real-time clock chip with RAM. It provides information such as seconds, minutes, hours, days, weeks, months, and years (including leap years). It can work in 24-hour or 12-hour mode and provide AM/PM indication. It communicates with the microcontroller through a simple serial interface, and only three wires are needed to communicate with the microcontroller in synchronous serial mode. The chip also provides the ability to trickle charge the backup power supply [3] , which can save time when the power is off.

4. Programming

The whole software is divided into three parts, namely the display part, the control part and the communication part. The communication part adopts Visual C++ programming language. VC provides a powerful communication control MSCOMM in standard serial communication. This control can set the data transmission and reception of serial communication, set the serial port status and the information format and protocol of serial communication, and directly use the RS-232 serial port of PC to send data. In order to realize reliable communication between the microcontroller and the PC, it is necessary to ensure that both parties have the same data format and baud rate. Here the baud rate is set to 115200bps.

The program composition block diagram is shown in Figure 4.

Figure 4 Program composition diagram

The display circuit part program is as follows:

void display(unsigned int key)

{ unsigned int i,k,temp[4],dd,

data_high[4],data_low[4];

for(k=0;k<10;k++)

{*P_Watchdog_Clear=0x01;

for(i=0;i<16;i++) // "i" represents the column

{switch(key)

{case 0:

temp[0]=encoding_00[i]; //The font exists in the array encoding_00[]

temp[1]=encoding_01[i];

temp[2]=encoding_02[i];

temp[3]=clear_00[i];

break;......} //Omitted

data_high[0]=temp[0]&0xff00; //The following four sentences are the fonts of a word

data_high[0]=data_high[0]>>8;

data_low[0]=temp[0]&0x00ff;

shiftbit(data_high[0]); //8-bit data serial output to 74595

shiftbit(data_low[0]);

oe154=1;

latch0=1; //74595 data parallel output enable

latch0=0;

dd = *P_IOA_Data;

dd=dd&0xff0f;

*P_IOA_Data=(i<<4)ⅆ //74154 decoding program

oe154=0;} //Open the enable of 74154

}

oe154=1; //return to main,close 74154 display

} // end of display

5 Conclusion

This electronic dot matrix display screen uses the superior performance SPCE061A single chip microcomputer as the control core, realizes the pre-stored display of Chinese characters, characters and numbers, and completes the multi-function switching of the key, realizes the left and right scrolling control, and displays the pre-stored data. It has the functions of continuously adjustable brightness, adjustable brightness sensitivity, computer control, power-off protection and voice recognition. When displaying 8 Chinese characters, the display scanning frequency can reach 120Hz, and the display quality is good. In the system design, the reliability and stability of the driver are also strengthened, which can effectively protect the system operation.

The author's innovation: Using the single-chip microcomputer SPCE061A as the control core and a cheap and reliable driving circuit, a display system with multiple functions such as mixed dynamic display of graphics and characters is realized, which can be voice controlled, and a circuit with adjustable screen brightness is designed and implemented.

References:

[1] Huang Tao, Hu Bin. Design of speaker-independent speech recognition based on SPCE061A microcontroller [J]. Microcomputer Information, 2005, 8:19-21.

[2] Zhai Zhen, Zhang Chunling. Circuit design of driving LED with 74HC595 chip [J]. Machine Tool and Hydraulics, 2004, 151(12):151-152.

[3] Zhu Lu, Zhu Qinghui. Continuous supplementary charging real-time clock chip DS1302 and its application [J]. Modern Electronic Technology, 2006, 234(19):116-118.

Keywords:SPEC061A Reference address:Design of dot matrix electronic display screen based on SPCE061A

Previous article:Optimizing Algorithm Design with Customizable Microcontrollers
Next article:Signal Acquisition System of Multi-wavelength Meter Based on ADμC842

Recommended ReadingLatest update time:2024-11-16 21:29

Outperforming isolated driver half-bridge gates
Most applications use isolated half-bridge gate drivers to control power, which requires high power density and efficiency, and high isolation voltage and reliability of isolated DC-DC power modules are critical. This article details these design concepts and demonstrates the excellent ability of isolated half-bridge
[Power Management]
Outperforming isolated driver half-bridge gates
Parallel? Series? How to design LED drive circuit?
  After the advent of the LED era, we can see it in all aspects of life, whether in the automotive field, the intelligent field or the industrial field. Because of its high efficiency, energy saving, long life and environmental protection, it has become an optional solution for today's lighting technology and is gradu
[Power Management]
Parallel? Series? How to design LED drive circuit?
A simple and in-depth understanding of the challenges of high-side drivers in automotive applications
With the development of automotive electronic technology, the demands for electrification, lightweighting and intelligence have driven the large-scale application of automotive-grade high-side drivers (HSD) in body load driving. In the field of automotive applications, high-side drivers are mainly used to
[Embedded]
A simple and in-depth understanding of the challenges of high-side drivers in automotive applications
51 single chip microcomputer accurately controls stepper motor (with TB6600 driver)
As a newbie, I want to record my learning process and communicate with you. Equipment: 51 MCU development board, TB6600 driver, 57BYG250B stepper motor (two-phase), DC switching power supply. The DC power supply supplies power to the driver, the MCU inputs pulses to the driver, and the driver drives the stepper motor.
[Microcontroller]
51 single chip microcomputer accurately controls stepper motor (with TB6600 driver)
LED screen driver IC packaging development status and prospects
After a long period of rapid development, LED display screens have now been widely used in the display parts of finance, transportation, entertainment, sports and other fields. With the rapid development of LED display screens, the screen driver IC, known as the "heart" of LED display screens, has also experienced
[Power Management]
LED screen driver IC packaging development status and prospects
Introduction to Control Drive Synchronous Rectification
After studying the self-driven synchronous rectification technology, let's focus on the control-driven synchronous rectification, which is usually more complicated than the self-driven one. Of course, the control-driven technology can overcome all the limitations of the self-driven technology, eliminate the body dio
[Power Management]
Introduction to Control Drive Synchronous Rectification
MCU + L298 DC motor driver
DC motor drive system Design a DC motor drive circuit, requirements: (1) Use MOS tubes, H bridges, or integrated driver chips to form the drive circuit of the DC motor (2) Use microcontroller to output adjustable PWM to control motor speed #include reg51.h #define uchar unsigned char #define uint unsigned int sbi
[Microcontroller]
MCU + L298 DC motor driver
From "source follows load" to "source-grid-load-storage", new energy storage drives future energy transformation, and the development of long-term, high-safety new energy storage technology is an irresistible trend.
The sub-forum on new energy storage driving future energy transformation of the 7th Hongqiao International Economic Forum was held at the National Exhibition and Convention Center (Shanghai) on November 5. Ren Jingdong, member of the Party Leadership Group and deputy director of the National Energy Administration, poin
[New Energy]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号