Tutorials to .com

Tutorials to .com » Mechine » Display » 80C51 microprocessor-based modular design of the OLED

80C51 microprocessor-based modular design of the OLED

Print View , by: iSee ,Total views: 37 ,Word Count: 1023 ,Date: Mon, 8 Jun 2009 Time: 6:28 AM

Organic light-emitting display (OLED) based on organic light-emitting materials based on a new generation of flat panel display technology, and compared to traditional display technologies, OLED has a thinner, lighter, active light-emitting (no backlight), wide viewing angle, high clear, fast response, low power, low temperature, and seismic-resistant performance, potential and low manufacturing costs, such as flexibility and environmental design to create the required display of almost all the high performance, which is widely used in consumer electronics, medical, automotive, power, energy, industrial and other fields of human-machine interface.

Visionox OLED display company specializing in R & D and manufacturing, in 2003 OLED products to market is mainland China's first OLED screen production and sale of body products and modules. Visionox company changes according to market demand, technological innovation and ongoing product upgrades, launch of a series of OLED display module, and provide customers with a variety of areas for a variety of solutions. Visionox company independently developed OLED products industry has a representative, has been the concern of the industry's customers. This article introduces the company's Visionox VGG12864G products, and gives control of 51 single-chip OLED application.

VGG12864G is to show a capacity of 128 × 64 line monochrome, character, graphic OLED display module, interface circuit simple and easy to use. The module has the following characteristics of 128 × 64 pixel dot-matrix, green; built-in 128 × 64-bit display RAM, each state corresponds to a pixel; Intel 8080 or Motorola 6800 8bit data bus interface or serial interface; Solomon SSD1305 OLED drive is recommended for the logic voltage +3 V ± 10%; drive voltage +9 V ~ +12 V; operating temperature -40 degrees ~ +80 degrees; low power consumption: ≦ 80mW.

80C51 microprocessor-based modular design of the OLED

Figure 1: OLED module and application interface logic circuit diagram.

Figure 1 for the module and application interface logic circuit diagram. User interface to provide power to give, understand SSD1305 display characteristics and instruction cache RAM system and have the use of mcu simulation to match the drive signal DATA command and display can be lit OLED screen. As can be seen from the chart, OLED external application interface module is SSD1305 IC, which is defined as follows:

SSD1305 IC support as a result of 6800 and 8080 bus interface, and provide a custom serial interface mode, VGG12864G OLED module easily into a wide variety of single-chip embedded systems, such as the 8051 AVR dsp ARM MSP, etc..

80C51 microprocessor-based modular design of the OLED

Figure 2: Using 80C51 single-chip module reference VGG12864G driver circuit schematic.

80C51 in China have a broad customer base, with the semiconductor technology advances, many well-known manufacturers have been offering faster, more integrated, performance-enhanced single-chip powerful. STC in the United States following the company's STC89LE516RD + MCU as an example, the 80C51 single-chip driver module VGG12864G program. Figure 2 for the reference circuit schematic diagram, Figure 3 for timing VGG12864G application interface.

80C51 microprocessor-based modular design of the OLED

Figure 3: SSD1305 8080 bus model.

80C51 microprocessor-based modular design of the OLED

Initialization:

/ / Process flow chart

Underlying driver code:

Written instructions:

void write_command(uchar command)
{
DC = 0;
_nop_ ();
P1 = command;
_nop_ ();
CS = 0;
_nop_ ();
OLED_WR = 0;
_nop_ ();
OLED_WR = 1;
_nop_ ();
CS = 1;
_nop_ ();
}
void write_command(uchar command)
{
DC = 0;
_nop_ ();
P1 = command;
_nop_ ();
CS = 0;
_nop_ ();
OLED_WR = 0;
_nop_ ();
OLED_WR = 1;
_nop_ ();
CS = 1;
_nop_ ();
}

Write display data:

void write_data(uchar data_bak)
{
DC = 1;
_nop_ ();
P1 = data_bak;
_nop_ ();
CS = 0;
_nop_ ();
OLED_WR = 0;
_nop_ ();
OLED_WR = 1;
_nop_ ();
CS = 1;
_nop_ ();
}
void write_data(uchar data_bak)
{
DC = 1;
_nop_ ();
P1 = data_bak;
_nop_ ();
CS = 0;
_nop_ ();
OLED_WR = 0;
_nop_ ();
OLED_WR = 1;
_nop_ ();
CS = 1;
_nop_ ();
}

Shows a picture:

void oled_display(uchar picture[]) //picture[]
{
uchar j;
for(page=0;page<8;page++)
{
write_command(0xB0+page); //set page address
write_command(0x00); //set low address
write_command(0x10); //set higher address
for(j=0;j<128;j++)
{
write_data(picture[j+page*128]); //
}
}
}
void oled_display(uchar picture[]) //picture[]
{
uchar j;
for(page=0;page<8;page++)
{
write_command(0xB0+page); //set page address
write_command(0x00); //set low address
write_command(0x10); //set higher address
for(j=0;j<128;j++)
{
write_data(picture[j+page*128]); //
}
}
}

80C51 microprocessor-based modular design of the OLED


Optical Electronics and Display Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.