TEP DOWNLOAD CENTER

Project Files of KS0108 GLCD Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 9bcecaa297a145b4b813e9802b20d4c4.zip ZIP archiveV1.0Verified0 downloadsFree
KS0108 GLCD Library for Proteus Simulation: the 128x64 graphic LCD showing a sine wave and a counter on an Arduino UNO V4.0
Proteus library · File 1 of 1

KS0108 GLCD Library for Proteus V1.0

KS0108 GLCD Library for Proteus V1.0 comes as a ZIP archive of 13 files (1.6 MB, 3.5 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • HEXHEX firmware

Description

KS0108-GLCD-Library-for-Proteus-v1.0.zip with the 128x64 KS0108 graphic LCD for Proteus simulation (TEPKS0108.LIB and TEPKS0108.DLL, Simple and Advance), the contrast trimmer, our Arduino UNO V4.0, the A4 demo, its sketch and a README.

Read KS0108 GLCD Library for Proteus Simulation

File Structure

9bcecaa297a145b4b813e9802b20d4c4.zip13 files · 5 folders · 3.5 MB unpacked
KS0108-GLCD-TEP-v1.0/13 files · 3.5 MB
Arduino Code/1 file · 16.2 KB
KS0108_Demo/1 file · 16.2 KB
INO KS0108_Demo.inoArduino sketch 16.2 KB
Proteus Library Files/3 files · 405.8 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPKS0108.LIBProteus library 70.7 KB
LIB TEPTRIM.LIBProteus library 133.2 KB
Proteus Model Files/3 files · 1.5 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPKS0108.DLLSimulation model 344 KB
DLL TEPTRIM.DLLSimulation model 311 KB
Proteus Simulation/5 files · 1.5 MB
DSN KS0108-GLCD-ArduinoUnoV4.pdsprjProteus simulation 22.7 KB
HEX KS0108_Demo.hexCompiled HEX file 23.7 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPKS0108.DLLSimulation model 344 KB
DLL TEPTRIM.DLLSimulation model 311 KB
TXT README.txtText file 14 KB

README

README.txt 236 lines
KS0108 GLCD LIBRARY FOR PROTEUS SIMULATION - V1.0 (a 128 x 64 parallel graphic LCD with two KS0108 chips)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/12/ks0108-glcd-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/lcd-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
KS0108-GLCD-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPKS0108.LIB                                  70.7 KB   the library -> LIBRARY folder
|   |-- TEPTRIM.LIB                                   133.2 KB   a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPKS0108.DLL                                 344.0 KB   the model -> MODELS folder
|   |-- TEPTRIM.DLL                                   311.0 KB   its model -> MODELS folder
|-- Proteus Simulation/
|   |-- KS0108_Demo.hex                                23.7 KB   the demo firmware
|   |-- KS0108-GLCD-ArduinoUnoV4.pdsprj                22.7 KB   the demo project
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPKS0108.DLL                                 344.0 KB   copy of the model
|   |-- TEPTRIM.DLL                                   311.0 KB   copy of its model
|-- Arduino Code/
|   |-- KS0108_Demo/KS0108_Demo.ino                    16.2 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~15.1 KB   this file
Total: 3.48 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
The classic 128 x 64 graphic LCD module, drawn at its real size (93 x 70 mm board, four 2.7 mm holes
on 88 x 65 mm centres, a 78.5 x 51 mm
bezel, a 72 x 40 mm viewing area, 0.48 mm dots on a 0.52 mm pitch, the 20-pin header along the top;
our own drawing), with TWO KS0108
column drivers - CS1 the left half, CS2 the right half - and a row driver:
  * The 8-bit parallel bus: D/I (0 = instruction, 1 = data), R/W, E (a write is taken when E falls;
    a read drives DB0 - DB7 320 ns after E
    rises), CS1 / CS2 (CSACTIVE: HIGH on most modules, LOW on some), /RST.
  * The instructions: 3E / 3F display off / on, 40 | Y the column (0 - 63, moves on by itself after
    every read or write), B8 | page (0 - 7,
    never moves on), C0 | line the display start line (the hardware scroll); the status read BUSY
    (bit 7), ON/OFF (bit 5, 1 = off), RESET
    (bit 4); the data read with its DUMMY read - the first read after setting the address returns
    the old output register.
  * Each chip: 512 bytes of RAM (8 pages x 64 columns, a byte = 8 vertical dots, LSB at the top),
    its own on/off and start line (different
    start lines show as a shear), busy 12 us after each instruction or data byte - an access while
    busy is ignored, counted and flagged.
  * The analog side: the contrast follows VDD - Vo (blank below about 7 V, good from 9 to 10.8 V,
    dark above), pin 18 VOUT gives about -10 V
    for the contrast trimmer, the backlight A / K is an LED (about 140 mA from 5 V through the
    board's limiter) - PWM dims it.
  * Faults in the log: both chips selected on a read, no chip selected, unknown instructions, E /
    address / data timing below the
    datasheet's, a /RST pulse under 1 us. Power-on: random RAM.
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.

TWO DEVICES (search "KS0108" or "GLCD" in Pick Devices):
  GLCDKS0108TEP     "GLCD KS0108 128x64 V1.0 - Simple" in TEPKS0108.LIB: the on-sheet STATUS panel.
  GLCDKS0108ADVTEP  "GLCD KS0108 128x64 V1.0 - Advance": OPEN PANEL opens the pop-up (Display, Bus
  log, Tests).
                    Both: model TEPKS0108.DLL; 20 pins VSS VDD VO DI RW E DB0-DB7 CS1 CS2 RST VEE A
                    K; properties CSACTIVE, GLASS.
  TRIMMER3296TEP    (TEPTRIM.LIB / TEPTRIM.DLL) the 10k contrast trimmer of the demo.

THE POP-UP
Advance: OPEN PANEL on the board, or click the part at Run. Pages:
    Display     The glass, both chips' state (on / off, start line, page, Y), the RAM of each half,
    the contrast and the backlight.
    Bus log     Every instruction and data byte decoded, the reads, the warnings.
    Tests       Init check, Bus timing (the E pulses and set-up times against the datasheet), Busy &
    reads (BUSY polls, the dummy read),
                Pixels.
    Graphs     the live values over the last 2, 6 or 15 s. Live / Freeze.
    Event log  every change and warning; filters All / Changes / Warnings, Pause, Clear
    Check      what the part is doing and what to look at, each with a verdict (green = fine, amber
    = check, red = wrong)
    Settings   theme, text size, open at Run, window size
    Help       report a bug, suggest a feature, article, updates, donate, forum; Copy diagnostics
    for a bug report

TEST STATUS
V1.0: verified in Proteus 8.5 on 24 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
  * The project loads and starts cleanly; the demo ran 10.2 simulated seconds in about 2 minutes 35
    seconds on our PC with the pop-up open
    and the pictures being taken. 8-bit bus: DB0 - DB3 <- D8 - D11, DB4 - DB7 <- D4 - D7, CS1 A0,
    CS2 A1, R/W A2, D/I A3, E A4, /RST A5.
  * Start-up: /RST pulse 1.067 ms, ready after 2 status reads; start line 0, both chips cleared
    together (L+R), display ON; BUSY seen 6x
    in the port-speed busy test; contrast VDD - Vo = 9.89 V (GOOD), VOUT -9.80 V, backlight 139 mA.
  * Sine wave: 126 dots by read-modify-write by 0.43 s; dummy read: 1st FF (the old output
    register), 2nd 49 (the RAM byte).
  * Counter across the CS1 / CS2 border every 0.5 s (00003 at 2.0 s; Y wraps 63 -> 0 on the left
    chip, the right chip takes over).
  * Hardware scroll 4.35 - 5.35 s: start line 13 on both chips at 4.6 s, the RAM unchanged.
  * Display OFF at 6.77 s (3E to both chips: blank glass, the RAM keeps the picture), ON again at
    7.20 s; count 20 at 10 s.
  * Tests page, Init check: every row green - power, contrast, VEE, reset, both chips ON, start line
    0, CS active HIGH, BUSY, cleared.
  * The pop-up (Display, Bus log, Tests) followed the run; 0 accesses ignored while BUSY, 0 timing
    faults.

INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPKS0108.LIB, TEPTRIM.LIB and our Arduino library
V4.0, ArduinoV4TEP.LIB, with the ARDUINO UNO V4.0 used by the demo) to the LIBRARY folder of
Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (use the folder that already holds Proteus's own .LIB files).
3. Copy TEPKS0108.DLL, TEPTRIM.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the MODELS
folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPKS0108.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "KS0108".

RUN THE DEMO
"Proteus Simulation\KS0108-GLCD-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the DLLs
beside the project.
  ARD1:     Arduino UNO V4.0 running KS0108_Demo.hex (window "TEP Arduino UNO - ARD1"): DB0 - DB3 <-
  D8 - D11, DB4 - DB7 <- D4 - D7,
            CS1 <- A0, CS2 <- A1, R/W <- A2, D/I <- A3, E <- A4, /RST <- A5.
  LCD1:     the GLCD, Advance (OPEN PANEL for the pop-up), GLASS YELLOW-GREEN, CSACTIVE HIGH; VSS
  and K to GND, VDD and A to 5 V.
  RV1:      the 10k contrast trimmer: the wiper to VO, its ends to VOUT (pin 18) and GND - about 9.9
  V of VDD - Vo at half turn.
  The sketch drives the bus itself (no GLCD library): a /RST pulse and BUSY polls, start line 0,
  both chips cleared together, display on, a
  busy test at port speed, a title bar, a frame split at the CS1 / CS2 border, a sine wave drawn dot
  by dot by read-modify-write (the
  dummy read), a counter across both halves, the hardware scroll (start line 0 -> 63 -> 0) and the
  display off / on.
Closed the monitor? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  VSS GND, VDD 5 V, VO to the trimmer's wiper (the trimmer between VOUT / VEE and GND), D/I R/W E
  and DB0 - DB7 to 11 pins, CS1 / CS2 /RST
  to 3 more, A to 5 V (through a resistor if your board has no limiter), K to GND. Check your
  module's pinout: there are three variants.
REAL HARDWARE:
 * Three pinouts exist (CS1 / CS2 at pins 15 - 16, at 1 - 2, or a third order): check the data sheet
   of YOUR module.
 * CS active HIGH on most 93 x 70 boards, LOW on some - try CSACTIVE / the sketch's CS_ON.
 * No contrast trimmer, no picture: VO needs a voltage between VEE and GND.
 * Reading needs the dummy read; never select both chips for a read.
 * It needs 14 pins - an UNO has few left; port expanders or a serial GLCD save pins.

THE DEMO SKETCH ON THE SERIAL MONITOR (KS0108_Demo V1.0, 9600 baud)
KS0108_Demo prints each step with its time. EXPECTED MONITOR OUTPUT (shortened)
  KS0108 GLCD Library for Proteus V1.0 demo - TEP
  [ ... s] /RST pulse 1 ms, ready after ... status reads
  [ ... s] start line 0, cleared, display ON (L + R)
  [ ... s] dummy read: 1st .. (old), 2nd 49 (RAM)

PROPERTIES (double-click the part > Edit Properties)
  CSACTIVE  HIGH / LOW - the level that selects a chip. Default HIGH.
  GLASS     YELLOW-GREEN (dark dots on yellow-green) / BLUE (white dots on blue). Default
  YELLOW-GREEN.
  PANEL     Simple: SHOWN / CLOSED (the on-sheet STATUS panel).
Every run starts again from the properties.

LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPKS0108.DLL with lines KEY=URL, for example:
  ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.

TROUBLESHOOTING
* Nothing on the glass: no 3F, the contrast (VDD - Vo below about 7 V - turn the trimmer), /RST held
  low, or CS of the wrong polarity.
* Everything dark: VDD - Vo too high - turn the trimmer back.
* Only one half works: CS1 / CS2 swapped or the wrong polarity on one.
* Wrong dots after a read-modify-write: the dummy read is missing.
* Bytes go missing: written while BUSY - poll the status or wait 12 us.
* The halves are sheared: different start lines on the two chips.
* The part is not simulated: TEPKS0108.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPKS0108.DLL is missing from MODELS and from the project folder. No
  UNO / no monitor window: TEPARDUINO.DLL is missing, or click the UNO's USB port.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
  https://www.theengineeringprojects.com/forum/category/lcd-proteus-library

SUPPORT US
This library is free. If it saves you time, please support our work:
  https://www.theengineeringprojects.com/donate

WEBSITE
  https://www.theengineeringprojects.com/

LICENCES AND THIRD-PARTY NOTES
* The model (TEPKS0108.DLL), the symbols and artwork, the other parts of ours in the demo and the
  Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP Serial Monitor
  Advance) are made by The Engineering Projects. The models use only standard Windows libraries; no
  Visual C++ redistributable is needed.
  The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library V4.0 - its
  microcontroller is Proteus's own AVR model): The Engineering Projects,
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6, which includes
  LGPL-licensed code; its source code is available at
  https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
* Proteus is a product of Labcenter Electronics and is not included. Arduino is a trademark of Arduino SA.
  This library is not made or endorsed by Arduino or Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\KS0108_Demo\KS0108_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 8,620 bytes of flash
and 279 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: both KS0108 chips (RAM, Y auto-increment and wrap, page, on / off, start line), the
parallel bus with reads and writes, the status
bits, the dummy-read pipeline, the busy time, the datasheet timing checks, /RST and power-on, the
contrast from VDD - Vo, the VOUT generator,
the backlight LED.
Our figures: the contrast thresholds, the VOUT output resistance, the 1 ms power-on reset and the 12
us RESET time, the header position.
Not modelled: the row driver's own signals, temperature drift of the contrast, the glass's response
time.

VERSION
TEP KS0108 GLCD library V1.0 (Nov 2026). Devices GLCDKS0108TEP / GLCDKS0108ADVTEP (TEPKS0108.LIB /
TEPKS0108.DLL). Demo sketch KS0108_Demo V1.0 (parallel bus). Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor.
Advertisement

Development1 release

  1. V1.0KS0108 GLCD Library for Proteus V1.0this page

    V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.

Installation8 steps

From the download to a working project, in order. The steps follow what the package contains.

You will need

  • Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
  • Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click 9bcecaa297a145b4b813e9802b20d4c4.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (KS0108-GLCD-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEPKS0108.LIB and TEPTRIM.LIB and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.

  3. 3

    Add the simulation model

    Copy TEPARDUINO.DLL, TEPKS0108.DLL and TEPTRIM.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 4

    Restart Proteus and place the component

    Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.

  5. 5

    Open the sketch in the Arduino IDE

    Open KS0108_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to KS0108_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open KS0108-GLCD-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    KS0108 GLCD Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download KS0108 GLCD Library for Proteus V1.0?

Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.

What is inside the archive?

KS0108 GLCD Library for Proteus V1.0 comes as a ZIP archive of 13 files (1.6 MB, 3.5 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 13 files.

What should I do if the download does not start?

Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.

Is this file free?

Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.

How do I check that the file arrived complete?

Compare its SHA-256 with the one on this page, 222f0aa4cb6ffffcfabf3b7c99cae4cf989704760dbbb58caf31dc19c75f0b11. In PowerShell run Get-FileHash "9bcecaa297a145b4b813e9802b20d4c4.zip"; on macOS or Linux run shasum -a 256 "9bcecaa297a145b4b813e9802b20d4c4.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.

Do I need WinRAR to open the ZIP file?

No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.

Where do I put the LIB and IDX files?

Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.

Which Proteus version does the library need?

The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.

How do I get the HEX file into the simulation?

Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.

preparing · 9bcecaa297a145b4b813e9802b20d4c4.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 6 Dec 2026Uploaded at
Last 14 days0 downloads
SHA-256 222f0aa4cb6ffffcfabf3b7c99cae4cf989704760dbbb58caf31dc19c75f0b11
DocumentationKS0108 GLCD Library for Proteus Simulation
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.