LCD categories (part 1)
There are basically two types of LCD. One type is CPU-peripheral-like interface and the other is Video-like interface. The CPU-peripheral-like interface LCD is easier to be controlled by a microcontrollers (or the LPT), because it has build in controller which accept commands and data from the interface. What we need is to connect the LCD to the I/O port of a microcontroller (or LPT) and the program in the microcontroller sends the commands and data to the LCD, that is.
The standard 16x2 character LCD, 128x64, 240x128 are of this type. The controller in 16x2 LCD is usually HD44780 (or compatible), one example is here:
http://www.beyondlogic.org/parlcd/parlcd.htm
For graphical LCD, some standard controllers are KS0107/KS0108, T6963, KS0713 etc. The command set and control sequence are different for different LCD controller IC. So when you are going to buy a LCD, make sure you know the LCD controller IC, and the pinout, it makes your life much easier.
I will use the LCD mentioned in “電容專家有 18pin 的 lcd 仔買” as an example, but the general principles are applicable to all CPU-peripheral-like interface. As I know there is a thread discussing how to control the LCD with PC software such as LCDStudio. I will share experience in controlling the LCD with microcontroller. The platform is
18pin LCD (132x64) with KS0713 controller
8051 architecture uC (such as S51, S52, DS89C430/DS89C450 etc.)
Software in Keil C.
To be continued… |