Realization of Hanxian for ultra-thin display OLED

May 28, 2020

Realization of Hanxian for ultra-thin display OLED

With the development of science and technology, electronic display technology is also constantly updated. From the traditional cathode ray tube (CRT) to the advanced liquid crystal display (LCD). Now being transitioned to the third generation display technology, candidates for the third generation display technology include plasma discharge display (PDP), organic electroluminescent screen (OLED), light emitting diode (LED), and field emission display (FED) Wait. At present, the most fiercely competitive in research and development are PDP, OLED, LCD. They have their own strengths, but the ultimate goal they pursue is the same, which is to achieve light weight, thin body, high brightness, fast response, high definition, low voltage, high efficiency, long life and low cost. This article gives a brief introduction to OLED, currently recognized as the most ideal display technology, and gives a hardware configuration and software design method for OLED display to display Chinese characters.

Introduction and characteristics of OLED

When some electrodes made of special strong fluorescent organic materials are coated with appropriate electrodes on both surfaces and voltage is applied, the film will emit light. This process is called Organic Electroluminescence (Organic Electroluminescence)

, Referred to as EL), because its light-emitting principle is very close to inorganic light-emitting diodes, so it is also called OLED (Organic Light EmitTIng Diode), is an electrical dimming process. Scientists have discovered this phenomenon as early as the 1930s. However, due to the slower progress in materials and device technology, it has not received much attention from academia and industry. FIG. 1 is a schematic diagram of the basic structure of an OLED device, which includes a substrate, a transparent electrode (anode), an organic layer, and a metal electrode (cathode). Organic electroluminescence display technology (OLED) is striking the mainstream position of LCD in flat panel display with its excellent technical performance, and it is likely to replace it.

Basic structure of organic electroluminescent device

Figure 1 The basic structure of an organic electroluminescent device

Therefore, as many as hundreds of scientific research institutions and enterprises in the world have invested huge financial and human resources in the research and development of OLED technology. According to predictions by relevant foreign agencies, in the global image display, the market share of displays using OLED technology will increase rapidly by 2005, reaching nearly 4.5 billion US dollars in sales, including nearly 500 million US dollars for OLED special materials, and the development trend It will continue to expand. OLED will be widely used in national defense, home, and various digital instruments and equipment, and as one of the technological levels of a country in the information age, it will occupy a decisive position in the entire national economy and national defense industry.

89C52 connected with OLED

Take the RGS29128064 GH000 organic light-emitting OLED display module produced in Taiwan as an example to introduce its application. The description of the RGS29128064 GH000 electrical interface is as follows:

Among them: GND, VCC ground and + 5V power supply, Vp connects to 7 ~ 12V, the other wiring is connected to the 89C52 port line, and the control instructions are written according to the T6963C drive control module instructions.

In our common industrial control, all Chinese characters are generally not used, and very few Chinese characters are usually used. We extract it to form a small Chinese character library or Western character library. 89C52 microprocessor has 4K ROM memory, in addition to processing software, it can hold 200 Chinese characters (16 × 16 dot matrix), which can basically meet the requirements of industrial control. Using 89C52 microprocessor to control the RGS29128064GH000, the hardware connection is shown in Figure 2.

89C52 and RGS29128064GH000 hardware connection diagram

Figure 2 89C52 and RGS29128064GH000 hardware connection diagram

J1 is connected to a 2 × 8 keyboard, and J2 is connected to the RGS29128064 GH000 (OLED) display with built-in T6963C drive controller to form a display control module with both a keyboard and a self-made Chinese character library. The control processing of the OLED display screen can be completed, which not only saves the developer's time, but also saves the resources of the single chip microcomputer. The specific method is as follows:

First, using the self-editing library function My.lib generated by Keil C51, the 128 × 64 OLED display is divided into 64 units, as shown in Table 1, the functions include initialization, display of Chinese characters and Western characters, etc. The preparation of these functions Can refer to the built-in T6963C LCD display drive controller.

By modifying the communication parameters in the main function main (), the font encoding in the Western library header file West.h and the Chinese library header file Chinese.h, the font encoding is completed by the modulus taking program. The specific method is as follows:





void main (void)


IniTIalOLED (); / Initialize OLED

SCON = 0x50;

TMOD = 0x20;

TH1 = 0xfd;

TL1 = 0xfd;

Receive (); / Receive parameters


Chinese.h file

unsigned char code chinese [] = {

/ * 0th word of Chinese font * /

/ *-Text: Tuo-* /

/ *-Song type 12; The corresponding dot matrix under this font is: width x height = 16x16-* /

0x00, 0xFE, 0x12, 0x2A, 0xC6, 0x00, 0x18, 0x08, 0xE8, 0x09, 0x0 E, 0x88, 0x88, 0x18, 0x08, 0x00, 0x00, 0xFF, 0x02, 0x04, 0x03, 0x00, 0x00, 3 , 0x41, 0x41, 0x40, 0x40, 0x78, 0x00, 0x00,}

West.h file


igned char code west [] = {

/ *-Text: A-* /

/ *-Song type 12; The corresponding dot matrix under this font is: width x height = 8x16-* /

/ * The 0th character of the Western font * /

0x00, 0x00, 0xC0, 0x38, 0xE0, 0x00, 0x00, 0x00, 0x20, 0x3C, 0x23, 0x02, 0x02, 0x27, 0x38, 0x20,}

Compile and connect My.lib to generate an executable file, burn and write in 89C52 to form the OLED Hanxian system needed by itself.

The OLED Hanxian system is connected to the main system through a serial port. In the main system, the functions of controlling the display position, displaying Western or Chinese, and reading keyboard data are as follows:

void main (void)


SCON = 0x50;

TMOD = 0x20;

TH1 = 0xfd;

TL1 = 0xfd;

send (0, xx, xx); / * clear screen * /

send (1,0x01,0x02); / * Display the second Western language in the Western header file west.h at the first position on the screen * /

send (2,0x02,0x02); / * Display the second Chinese in Chinese header file chinese.h at the second position on the screen * /

send (3,0x01, xx); / * Delete the first line on the screen * /

send (4, xx, xx); / * Read keyboard value * /


Through the above hardware connection and the corresponding library functions, the Chinese character display of the OLED display can be easily realized through the serial port, including the display of Chinese characters in any font of 16 × 16 dot matrix; the display of English characters or Arabic numerals in any font of 8 × 16 dot matrix ; Clear screen; clear a line and 2 × 8 keyboard control, etc. Using this function module not only shortens the development cycle of developers, but also saves resources of single chip microcomputers.

About Silicone Bookmark:

Silicone Bookmark is one of our Other Silicone Products,it can help you to be a mark on your books,and it have many design that you can use it as a decoration.Compare with tradition bookmark,our silicone bookmarks is made of silicone and do not break easily.

If you are interested in silicone bookmark,welcome to visit our Custom Bookmark , Paper Bookmark , Clip Bookmark ,Silicone Pointing Finger Bookmark, Bookmark China ,Bookmark Personalized.

Product introduction:

1.Product name:Custom Bookmark,Paper Bookmark,Clip Bookmark,Silicone Pointing Finger Bookmark,Bookmark China,Bookmark Personalized

2.Place of origin:Guangdong China

3.Color:any pantone color

4.Effect:Any effect according to customer's requirement


6.Package:1 pcs/opp,customized design is available.



9.Usage:Use for booking reading

10.Silicone Bookmark photos for reference.

Silicone Bookmarks 2

Silicone Bookmark

Custom Bookmark,Paper Bookmark,Clip Bookmark,Silicone Pointing Finger Bookmark,Bookmark China,Bookmark Personalized

OK Silicone Gift Co., Ltd. ,