
Abstract: Thedetailed PIC16F877 microcontroller MG-12232 dot matrix LCD display features of the hardware interface circuit and interface software programming.
As liquid crystal display (LCD) with low power consumption, small size, light weight, ultra-thin displays can not match other advantages, it is widely used in a variety of instruments and low-power intelligent electronic products. Dot matrix (or graphic) LCD can display characters, numbers, can also display a variety of graphics, curve and characters, and can scroll up and down the screen, animation, flash text feature display features a wide range of uses. Introduction In this paper, MG-12232 LCD drive SED1520F0A structure, function, based on the description of the PIC16F877 microcontroller LCD hardware interface circuit and software programming features.
A, PIC16F877 and MG-12232 hardware interface circuit
1.SED1520F0A interface signals
SED1520F0A drive and control is the unity of the ranks of small-scale liquid crystal display driver IC, the circuit is simple, economical and practical, containing the oscillator, only an external oscillation resistor to work. Module has good stability. SED1520F0A and microprocessor interface signals are as follows.
DB0 ~ DB7: Data bus.
A0: data / instruction select signal. A0 = 1 Indicates the data bus is the data; A0 = 0, show now is the instruction on the data bus or read state.
RES: Interface Timing type selection. RES = 1 for the M6800 timing, the operation signal is E and the R / W; RES = 0 for the Intel8080 timing, the operation signals RD and WR.
RD (E): when the Intel 8080 sequence read, active low; in the M6800 enable signal when the timing is a positive pulse, the falling edge for the write operation, when the high read.
WR (R / W): timing when the Intel 8080 to write, active low; timing when the M6800 read, write select signal, R / W = 1 to read, R / W = 0 to write.