KS0108 Controller

After over 35 years of development and helping other designers and engineers, The Workbench site will be closing due to age and retirement of members. Sales of certain items in stock will continue until depleted. The basic site will remain open for some time for item documentation. If you have any special request please email.

Support Files

User supplied notes

E-mail for more information

Classified Section Items Available

If you have any projects that you would like displayed, please send E-mail

DISCONTINUED ITEMS

Getting familiar with the KS0108 controlled LCD

Graphics 128x64

Software:GLiPIC andBINHEX 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

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 18)  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.

Sample PICBasicPro code available in the support section

All Rights Reserved, Copyright (c) COMPSys , 2018

Updated on:

February 16, 2018 

Windows is a registered trademark of Microsoft Corporation. PICMicro is a registered trademark of Microchip Inc.

AVR is a registered trademark of Atmel Corp., MAX is the trademark of Maxim Corporation