KS0108 LCD Controller

Getting familiar with the KS0108 controlled LCD

Graphics 128x64

Software: GLiPIC and BINHEX were used to produce the following displays, both of which are available in the Benchware section.

Graphics and characters 128x32

128x32 Display available from BGMicro (under $9.00)

128x64 Display available from AZ Displays (under $40)

The 128x64 used as a mini-terminal, allowing the user to issue commands via a pc connection.

Overview of the KS0108 graphic controller

Contact

Email  for more information

Both the 128x64 and 128x32 modules are led backlit, run on 5 volts and have  on-board contrast voltage (Vee) supplies. They have a 20 pin connector. Standard interface to an mpu requires 14 lines (8 for data and 6 for control)

The Samsung KS0108 is a graphics only controller and does not have an on board character generator. Compared to other controllers like the Toshiba T6963C, the KS0108 has a limited amount of instructions. However, it is quite easy to interface and program. My problem was trying to find documentation. The BG Micro, pamphlet gives some clues but no exact implementation. After numerous hours of hunting on the internet I found just bits and pieces. Most of what I found came from, Hantronix Inc. their documentation is very helpful, since they gave an example program written for an 8051 and from AZDisplays Inc.who provide excellent specifications in a pdf file.

The KS0108 Architecture

Both these displays are essentially the same except that the 128x32 only displays 4 pages (lines) at a time, whereas the 128x64 displays all 8 lines. The KS0108 controller has 512 bytes of display ram arranged as 64x64 pixels. Each LCD module has two controllers! One controls the left side while the other the right side.

Notes on the pinouts and implementation

The controller has an onboard power supply (Vee) for the LCD contrast. By connecting a 20k POT between Vee (Pin 8)  and 5+v Vdd (Pin 2) with the pots wiper connected to Vo (Pin 3) one is able to adjust the LCD’s contrast. Pins 19 and 20 are the cathode (K) and anode (A) of the backlit led. One should insert a 100-200 ohm resister in series with the anode to provide overload protection.

180 

Copyright (c) COMPSys , 2001

Updated on:

April 10, 2001