TEP DOWNLOAD CENTER

Project Files of LCD 128x64 Library for Proteus V1.0 (ST7920 128x64 + Arduino)

Libraries Code Projects Simulation
tep://download-terminal lcd-12864-tep-v1-0-ad41f78ce1f24e7ba3bf0dbbd3673126.zip ZIP archiveV1.0Verified30 downloadsFree
LCD 12864 Library for Proteus V1.0: an Arduino UNO V4.0 with the blue 12864 Simple showing a dashboard, and the LCD 12864 Advance pop-up Display page with the graphics test
Proteus library · File 1 of 1

LCD 12864 Library for Proteus V1.0

LCD 12864 Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.8 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

This is the download page of LCD 12864 Library for Proteus V1.0, the file package of the tutorial LCD 128x64 Library for Proteus V1.0 (ST7920 128x64 + Arduino), published on The Engineering Projects in October 2026. Here you get the ZIP file (1.2 MB) with the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware, the list of files it contains, the README when there is one, and the installation steps in order.

What this library is

LCD-12864-Library-for-Proteus-v1.0.zip with the LCD 12864 (ST7920 128x64) blue and yellow-green, Simple and Advance (TEPLCD12864.LIB and TEPLCD12864.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO U8g2 serial and parallel simulation with its HEX file, the demo sketch and a README.

This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.

What is inside the ZIP file

  • ArduinoV4TEP.LIB – Proteus library, 201.9 KB
  • TEPLCD12864.LIB – Proteus library, 131.8 KB
  • TEPARDUINO.DLL – Simulation model, 883.5 KB
  • TEPLCD12864.DLL – Simulation model, 318 KB
  • LCD-12864-ArduinoUnoV4.pdsprj – Proteus simulation, 24.3 KB
  • LCD_12864_Demo.ino – Arduino sketch, 11.3 KB
  • and 4 more, all listed in the File Structure tab

The archive unpacks to 2.8 MB and carries its own README (README.txt), shown in the README tab above.

How to download

Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.

How to install

  • Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
  • Step 2: Close Proteus and copy ArduinoV4TEP.LIB and TEPLCD12864.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPARDUINO.DLL and TEPLCD12864.DLL into the MODELS folder next to it, so the part simulates.
  • Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
  • Step 5: Open LCD_12864_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
  • Step 6: In Proteus set the controller's Program File to LCD_12864_Demo.hex; on hardware, flash the same file.
  • Step 7: Open LCD-12864-ArduinoUnoV4.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, LCD 128x64 Library for Proteus V1.0 (ST7920 128x64 + Arduino), explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.

Read LCD 128x64 Library for Proteus V1.0 (ST7920 128x64 + Arduino)

File Structure

lcd-12864-tep-v1-0-ad41f78ce1f24e7ba3bf0dbbd3673126.zip10 files · 5 folders · 2.8 MB unpacked
LCD-12864-TEP-v1.0/10 files · 2.8 MB
Arduino Code/1 file · 11.3 KB
LCD_12864_Demo/1 file · 11.3 KB
INO LCD_12864_Demo.inoArduino sketch 11.3 KB
Proteus Library Files/2 files · 333.7 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPLCD12864.LIBProteus library 131.8 KB
Proteus Model Files/2 files · 1.2 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPLCD12864.DLLSimulation model 318 KB
Proteus Simulation/4 files · 1.3 MB
DSN LCD-12864-ArduinoUnoV4.pdsprjProteus simulation 24.3 KB
HEX LCD_12864_Demo.hexCompiled HEX file 66 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPLCD12864.DLLSimulation model 318 KB
TXT README.txtText file 30.2 KB

README

README.txt 384 lines
LCD 12864 LIBRARY FOR PROTEUS - V1.0 (ST7920 128x64 GRAPHIC LCD)
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/10/lcd-12864-library-for-proteus-v1-0.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
The built-in monitor is our TEP Serial Monitor Advance - its own article:
  https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Our other graphic displays: the 1.8" TFT ST7735, the Nokia 5110 LCD and the
OLEDs (all three in one):
  https://www.theengineeringprojects.com/2026/10/tft-st7735-library-for-proteus-v1-0.html
  https://www.theengineeringprojects.com/2026/10/nokia-5110-lcd-library-for-proteus-v1-0.html
  https://www.theengineeringprojects.com/2026/10/oled-library-for-proteus-v1-0.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
LCD-12864-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                          201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPLCD12864.LIB                           131.8 KB   the 4 LCD 12864 devices -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                            883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPLCD12864.DLL                           318.0 KB   the LCD 12864 (ST7920) model -> MODELS folder
|-- Proteus Simulation/
|   |-- LCD_12864_Demo.hex                         66.0 KB   both UNOs (demo sketch V1.0)
|   |-- LCD-12864-ArduinoUnoV4.pdsprj              24.3 KB   demo: UNO 1 + serial, UNO 2 + parallel
|   |-- TEPARDUINO.DLL                            883.5 KB   copy of the board model
|   |-- TEPLCD12864.DLL                           318.0 KB   copy of the model so the demo runs as is
|-- Arduino Code/
|   |-- LCD_12864_Demo/LCD_12864_Demo.ino          11.3 KB   the demo sketch (source of the .hex)
|-- README.txt                                    ~31.1 KB   this file
Total: 2.80 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the 12864 graphic LCD module for Proteus 8: the 128x64-dot
STN LCD with the ST7920 controller (and its ST7921 segment driver), on the
common 93 x 70 mm board with a 20-pin header printed VSS, VDD, V0, RS, R/W, E,
DB0 - DB7, PSB, NC, RST, VOUT, BLA, BLK - in the two classic colours: white dots
on a BLUE glass and dark dots on a YELLOW-GREEN glass. Our own model, not a
symbol on top of Proteus's parts. It is built and tested with the U8g2 library
(U8G2_ST7920_128X64_...); other drivers send the same datasheet instructions:
  * Both buses of the real chip, picked by the PSB pin like on the module:
    PSB LOW = SERIAL (3 wires: CS on the RS pin, SID on the R/W pin, SCLK on
    the E pin - the sync byte of five 1s, then RW and RS, every byte in two
    halves), PSB HIGH or OPEN = PARALLEL (8-bit or 4-bit on DB0 - DB7, RS, R/W,
    E; the module's pull-up makes an open PSB parallel). Parallel reads work: the
    busy flag with the address counter, and the RAM. The serial bus cannot read
    (the chip has no data out) - a sync with RW = 1 is flagged.
  * The ST7920 itself, from its datasheet (V3.3): the BASIC instruction set
    (CLEAR, HOME, ENTRY MODE, DISPLAY ON / OFF with the cursor and blink, the
    shifts, FUNCTION SET, the CGRAM and DDRAM addresses) and the EXTENDED set
    (STANDBY, the scroll / RAM select, REVERSE of a line, the extended FUNCTION
    SET with G = graphics on, the scroll address, the GDRAM address - vertical
    first, then horizontal). The G bit is taken only inside the extended set (RE
    already 1), as on the real chip: the reason U8g2 sends 0x3E twice.
  * Two layers on one glass, like the real module: the TEXT layer (DDRAM: 4
    lines of 16 characters in the chip's own 8x16 font, CGRAM: 4 characters of
    your own 16x16 design, the cursor and blink) and the GRAPHICS layer (GDRAM,
    shown with G = 1). The model draws both (exclusive-or where they overlap).
  * The 128x64 module's folded memory: the ST7920 is a 256 x 32 chip, so screen
    rows 0 - 31 are GDRAM rows 0 - 31, words 0 - 7, and rows 32 - 63 are the SAME
    rows, words 8 - 15; the text lines are DDRAM 80, 90, 88 and 98. REVERSE of
    line 1 inverts lines 1 and 3 on the glass - exactly what a real module does.
  * The datasheet's waits: 40 ms after power-on before the first instruction,
    1.6 ms after CLEAR. A byte that comes earlier is ignored and flagged as
    TOO EARLY. XRESET (the RST pin) low for 10 us or more resets the registers.
  * The CONTRAST trimmer of the module (a property, 0 - 100 %): 35 - 70 % is
    good, lower gives faint dots, higher turns the clear dots grey. The
    backlight is on while BLA is high and BLK low; PWM on BLA dims it.
The part looks like the real module: the green board with its four holes, the
glass in its black bezel and the 20-pin header on top, at the real size. While
the simulation runs the glass shows the picture dot by dot, and LEDs show what
happens: PWR (power), CMD (an instruction) and DATA (a data byte). A TEP strip
under the glass holds the SIMPLE / ADVANCE badge and the panel button. The LEDs,
the strip and the panels are TEP additions; a real module has none of them.

FOUR DEVICES IN ONE LIBRARY (search "12864" or "ST7920" in Pick Devices):
  Simple    device LCD12864BLUETEP      "LCD 12864 V1.0 Blue - Simple"
  Advance   device LCD12864BLUEADVTEP   "LCD 12864 V1.0 Blue - Advance"
  Simple    device LCD12864GREENTEP     "LCD 12864 V1.0 Yellow-green - Simple"
  Advance   device LCD12864GREENADVTEP  "LCD 12864 V1.0 Yellow-green - Advance"
  Simple    On-Sheet Panel: the LCD 12864 STATUS panel under the board - the
            banner (READY - SERIAL (PSB LOW), GRAPHICS ON, DISPLAY ON / WAITING
            - NOTHING ON THE BUS YET / WAITING - PSB OPEN = PARALLEL: TIE PSB TO
            GND FOR SERIAL / STUCK - CS HIGH, NO CLOCK: IN PROTEUS USE U8G2
            SW_SPI / GDRAM ADDRESS IN THE BASIC SET - SEND 0x36 FIRST / BYTES
            LOST - SENT WHILE BUSY / GRAPHICS OFF (G = 0) - SEND 0x34, THEN 0x36
            / STANDBY / DISPLAY OFF / CONTRAST TOO LOW or TOO HIGH / BACKLIGHT
            OFF / SERIAL MODE CANNOT READ / IN RESET / SUPPLY REVERSED / NO
            POWER), the readouts INTERFACE (and the serial clock), INSTRUCTIONS
            (BASIC / EXTENDED), SHOWS (TEXT, GRAPHICS or both), DISPLAY, ADDRESS,
            VDD, CONTRAST, BACKLIGHT, FRAME (a full screen on the bus) and
            IGNORED, and the last 6 transfers. The red X closes the panel,
            PANEL: SHOWN / CLOSED on the strip opens it again.
  Advance   Pop-Up Panel: only the module on the schematic; at Run a TEP pop-up
            window "TEP LCD 12864 Advance" opens - the look of the TEP Serial
            Monitor. Tabs Display, Bus log and Tests; gear and ? icons for
            Settings and Help; the palette icon switches the theme:
              Display   a big copy of the glass with GLASS Live / Freeze and
                        PIXEL GRID Off / On (x / y numbers), the controller's
                        state (interface, instruction set, what shows, display,
                        G bit, reverse / scroll, contrast, backlight), the GDRAM
                        as the ST7920 holds it (32 rows x 256 dots, the two
                        halves marked), the text layer (the 4 DDRAM lines), the
                        supply, the bus and the full screens, the latest
                        transfers
              Bus log   every instruction and every run of data bytes: the time,
                        the gap, CMD (with RE=1 in the extended set) / DATA /
                        POWER / RESET, the byte or the count, what it means (a
                        problem in red); filters All / Commands / Data /
                        Problems, Pause, Clear
              Tests     four tools - Init check, Bus, Speed, Pixels (see THE
                        TEST TOOLS below)
              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
            The OPEN PANEL button on the strip opens the window again.
All four use the same model (TEPLCD12864.DLL).

TEST STATUS
V1.0: verified in Proteus 8.5 on 13 Oct 2026 (the demo project as shipped: two
Arduino UNO V4.0 boards with their built-in monitors and LCD2's pop-up open).
What the run showed:
  * The project loads and starts cleanly; the simulation log has only
    information lines (both UNOs: "built-in serial monitor on D0 / D1 - 9600
    baud 8N1", supply pins 5.000 / 3.300 V; both LCDs: power on (5.00 V), then
    "display on - GRAPHICS, graphics on (G = 1)", LCD1 on the serial interface,
    LCD2 on the 8-bit parallel interface, contrast trimmer 50 % (GOOD)). ARD1
    prints "ST7920 128x64 ready on the serial bus (PSB low)", ARD2 "... on the
    8-bit parallel bus (PSB high)"; LCD1 (blue) shows the dashboard, LCD2
    (yellow-green, its UNO's A0 tied to GND) the graphics test.
  * LCD1's panel: READY - SERIAL (PSB LOW), GRAPHICS ON, DISPLAY ON; EXTENDED,
    GRAPHICS, ON, 5.00 V, GOOD (TRIMMER 50 %), backlight ON, IGNORED 0.
  * The commands on ARD1: STATUS; CLEAR, then ROM 1 - ROM 4 - four lines in the
    ST7920's own font (the text layer, DDRAM 80 / 90 / 88 / 98); DASH, then
    GRAPHICS OFF - the dashboard disappears, only the text layer stays, the red
    banner GRAPHICS OFF (G = 0) and a log line; GRAPHICS ON, ROM CLEAR;
    REVERSE 1 - lines 1 AND 3 inverted, as on the real module; SLEEP - the
    glass blank (standby), WAKE - the picture back; SPEED - "a full screen took
    107 ms" (U8g2's software SPI).
  * LCD2 (Advance): Display; Bus log; Init check all green (an XRESET pulse of
    1.018 ms 67.2 ms after power-on, the first instruction 184.4 ms after
    power-on - 40 ms at least, 8-bit, CLEAR, display on, entry mode increment,
    graphics on, the GDRAM addresses sent in the extended set, contrast GOOD:
    "initialised like the datasheet"); Bus - PSB HIGH, the E pulse 13.7 us (140
    ns at least), the E cycle 104.87 us (1.2 us at least), R/W never high (on
    GND: fine), the bus busy 0.66 % of the time; Speed - 3 full screens, 128.26
    ms (U8g2's clear in begin()) to 198.90 ms (a picture loop, U8g2 drawing the
    next 8 rows between the rows it sends), against the sketch's own SPEED:
    219 ms by millis(); Pixels - the dot x 51, y 33 is GDRAM row 1, word 11,
    bit 12 (the bottom half: the word is 8 further right), u8g2.drawPixel(51,
    33), text line 3, column 7 (DDRAM 8B).
  * Speed: about 0.6 x real time with both monitors and the pop-up open.
  * Found on the way, and built into the model: Proteus 8.5's ATmega328P never
    clocks its hardware SPI in SPI modes 2 and 3 (the clock idling high) - and
    U8g2 drives the ST7920 in mode 3, so U8G2_..._HW_SPI stops in begin() in
    Proteus (a real Arduino is fine). The demo uses U8g2's software SPI on the
    same pins, and the model shows STUCK - CS HIGH, NO CLOCK with the fix.
  Plus automatic checks on a PC, 0 failed: 139 with the REAL demo sketch and the
  UNMODIFIED U8g2 2.36.19 talking bit by bit to the model on both buses, while
  every picture also goes to U8g2's own full-buffer copy: after every command
  the glass equals that copy dot by dot (the start-up, every screen, ROM text,
  REVERSE, GRAPHICS OFF, SLEEP, the timing of SPEED); 64 on the controller
  alone (both instruction sets, the G bit rule, the folded GDRAM, the text layer
  and CGRAM, reverse, scroll, the busy times, reads, XRESET, the contrast, a
  full screen with gaps between the pages); 6 on the pop-up pages rendered; the
  demo project read back from disk (225 checks: devices, pins, wires, labels,
  no wire crossing).

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" (TEPLCD12864.LIB with the four
   devices 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
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
   LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPLCD12864.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS). ArduinoV4TEP.LIB and
   TEPARDUINO.DLL are the files of our Arduino Library V4.0 - if you have it,
   they are the same.
4. Delete TEPLCD12864.IDX from the LIBRARY folder if there is one (Proteus makes
   a new index).
5. Start Proteus. In Pick Devices (P) search "12864": you get the four devices
   (category Optoelectronics > Graphical LCDs).

RUN THE DEMO
"Proteus Simulation\LCD-12864-ArduinoUnoV4.pdsprj" - keep the .hex file and the
two DLLs beside the project.
  ARD1: Arduino UNO V4.0 + LCD1 = Simple, blue (SERIAL bus: the dashboard).
  ARD2: Arduino UNO V4.0 + LCD2 = Advance, yellow-green (8-BIT PARALLEL bus,
        A0 to GND: the graphics test).
  Both UNOs run LCD_12864_Demo.hex, and each has its serial monitor built in
  (window "TEP Arduino UNO - ARD1" / "- ARD2").
  1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does LCD2's
     pop-up (move them aside - they open over the schematic). The glasses stay
     blank for a moment (the display is off while U8g2 clears the random
     power-on GDRAM), then show the dashboard (LCD1) and the graphics test
     (LCD2); each monitor prints the start lines.
  2. Type the commands in the monitors (Enter sends): STATUS, TEXT Hi TEP, BAR
     25, ROM 1 HELLO, REVERSE 1, GRAPHICS OFF (then GRAPHICS ON), SLEEP / WAKE,
     SPEED - see THE DEMO SKETCH below.
  3. LCD1: close the panel with its red X, open it with PANEL on the strip.
  4. LCD2 (Advance): Display (try Freeze and the pixel grid), Bus log, and
     Tests - Init check, Bus, Speed, Pixels (click a dot).
Closed a monitor window? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  SERIAL (node 1, PSB LOW - 3 signal wires):
  LCD pin   Arduino UNO
   VSS      GND
   VDD      5V
   RS       D10  (CS - chip select, active HIGH on the ST7920)
   R/W      D11  (SID - the serial data, MOSI)
   E        D13  (SCLK - the serial clock, SCK)
   PSB      GND  (low = serial)
   RST      D8   (any pin)
   BLA      5V   (the backlight anode)
   BLK      GND  (the backlight cathode)
  In the sketch (U8g2, page mode: a 128-byte buffer):
    #include <U8g2lib.h>
    U8G2_ST7920_128X64_1_SW_SPI lcd(U8G2_R0, 13, 11, 10, 8);  // SCLK, SID, CS, RST
  8-BIT PARALLEL (node 2, PSB HIGH):
   VSS GND, VDD 5V, BLA 5V, BLK GND, PSB 5V (high = parallel), R/W GND (write
   only), DB0 - DB7 D2 - D9, E D10, RS D11, RST D12
    U8G2_ST7920_128X64_1_6800 lcd(U8G2_R0, 2, 3, 4, 5, 6, 7, 8, 9,
                                  10, U8X8_PIN_NONE, 11, 12);  // DB0-7, E, -, RS, RST
  V0, NC and VOUT stay open (the module's trimmer sets the contrast).
The serial monitor needs no wires: it is built into the Arduino UNO V4.0 (it
listens to D1 and drives D0 inside the board, like the USB chip of a real UNO).
Every LCD pin reaches its UNO through a short wire with a net label - D10_1,
D11_1, D13_1, D8_1 and 5V_1 (node 1), D2_2 - D12_2 and 5V_2 (node 2), and GND:
the same name = connected. ARD2's A0 has a GND label: its sketch picks the
parallel bus and starts with the graphics test.
REAL HARDWARE:
 * HW_SPI: on a real Arduino U8G2_ST7920_128X64_1_HW_SPI lcd(U8G2_R0, 10, 8)
   works with the serial wiring above (SCLK D13, SID D11) and is faster. In
   Proteus 8.5 use SW_SPI (see TEST STATUS) - the LCD would show STUCK.
 * PSB: on some boards PSB is a solder jumper on the back, not a pin. Serial
   needs PSB low; an open PSB is parallel (the module's pull-up).
 * The contrast: turn the trimmer on the back of the module (VR1) until the
   dots are dark and the background clear. Some modules have no trimmer: then
   put a 10 kohm potentiometer between VOUT and VDD with its wiper on V0.
 * The backlight: BLA to 5V, BLK to GND. Most boards have the backlight
   resistor on board - check yours; without the backlight the STN glass is hard
   to read.
 * Speed: a full screen is 1,024 bytes of GDRAM plus 2 addresses per row - about
   100 - 200 ms on an UNO with U8g2's page mode. Redraw only when something
   changes (the demo redraws twice a second).
 * The ST7920 takes up to 2.5 MHz on SCLK at 5 V; U8g2 keeps below that.
 * Most 12864 modules are 5 V parts; for a 3.3 V board use a module made for
   3.3 V.

THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the bus as the model sees it during the running simulation;
each shows one "Good for:" line and a verdict per row (green = fine, amber =
check, red = wrong).
  Init check    Good for: a blank 12864 - is the interface right (PSB), the
                start-up right, are the graphics switched on? The start-up since
                power-on against the ST7920 datasheet: the supply, the interface
                (PSB), the XRESET pulse (how long, how soon after power-on), the
                40 ms power-on wait, FUNCTION SET, CLEAR, DISPLAY, ENTRY MODE,
                the graphics (G), where the GDRAM addresses were sent (basic or
                extended set), the contrast, a verdict, and the start-up as the
                sketch sent it.
  Bus           Good for: a blank LCD - PSB wrong, a pin not wired, the clock
                too fast, bytes cut or out of step. Both buses: PSB, the pins
                connected, the instruction / data bytes since Start, how busy
                the bus is, and the last bursts with their first bytes. SERIAL:
                the SCLK clock (measured, 2.5 MHz at most), the syncs, half-bytes
                out of step, read requests (the serial bus cannot read), cut
                bytes, bits before a sync, clocks with CS low, and a STUCK
                transfer (CS high, no clock). PARALLEL: the shortest E pulse and
                E cycle against the datasheet, and the reads (answered) or R/W
                never high.
  Speed         Good for: slow screens. The instructions and data bytes since
                Start, a full screen (all 512 GDRAM words) from its first byte
                to its last (min / max), the full screens a second at best, how
                often the sketch redraws, what the bits alone take at this
                clock (serial), the shortest gap between two bytes, the panel's
                own refresh, and what a redraw costs at this speed (the whole
                screen, an 8-pixel row, a text line in the chip's font, a clock).
  Pixels        Good for: drawing code - click a dot on the small glass: its
                GDRAM row (Y), word (X) and bit, the word's value, the
                instructions that write it, the u8g2.drawPixel() line, its text
                cell (line, column, DDRAM address) and what that cell holds, and
                the 16 dots of that word, magnified.

THE DEMO SKETCH ON THE SERIAL MONITOR (LCD_12864_Demo V1.0)
  HELP                   the command list
  STATUS                 the bus, the screen, the text, the bar, graphics,
                         sleep, the ROM lines, the reversed lines, the last
                         full-screen time
  TEXT <text>            the big text on the dashboard (16 characters)
  BAR <0-100>            the bar at the bottom
  DASH / TEST / CLEAR    the dashboard / the graphics test / a blank screen
  SPEED                  a timed full screen: "a full screen took N ms"
  ROM <1-4> <text>       a line of text in the ST7920's OWN font (the text
                         layer - U8g2 only draws graphics); ROM CLEAR
  REVERSE <1-2>          toggles a reversed line (the module shows line 1 as
                         lines 1 + 3, line 2 as lines 2 + 4)
  GRAPHICS ON|OFF        the G bit: OFF = only the text layer shows
  SLEEP / WAKE           standby (display off) / display on
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter. A0 open = the serial bus (the dashboard), A0 to GND = the 8-bit
parallel bus (the graphics test first).

EXPECTED MONITOR OUTPUT (ARD1)
  LCD 12864 V1.0 demo - The Engineering Projects
  ST7920 128x64 ready on the serial bus (PSB low)
  Type HELP for the commands
STATUS:
  LCD 12864 ST7920 128x64, serial bus (PSB low)
  Screen: dashboard
  Text: Hello, TEP
  Bar 70%, graphics on, sleep off
REVERSE 1:
  OK - line 1 reversed: on (rows of lines 1+3 / 2+4)
SPEED:
  OK - a full screen took 107 ms (1,024 bytes of GDRAM)

PROPERTIES (double-click the part > Edit Properties)
  PANEL       Simple devices only: the STATUS panel at the start, OPEN or CLOSED
              (default OPEN)
  CONTRAST    the module's contrast trimmer, 0 - 100 % (default 50; 35 - 70 =
              good)
Every run starts again from the properties. A bad value is logged and the
default used. The demo's UNOs (ARDUINO UNO V4.0): PROGRAM LCD_12864_Demo.hex,
MONITOR YES (the built-in monitor), BAUD 9600, AUTOOPEN YES, BOOTLOADER YES.

LINKS.INI (OPTIONAL)
The Help page cards of the Advance devices open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPLCD12864.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
* The glass stays dark and the PWR LED is off: no power - check VDD and VSS
  (the panel says NO POWER with the voltage; the module needs 5 V).
* SUPPLY REVERSED: VDD and VSS are swapped.
* WAITING - NOTHING ON THE BUS YET: nothing reached the LCD - check the wiring
  for the bus PSB picks (the Bus tool lists the pins that are not connected).
* WAITING - PSB OPEN = PARALLEL: the sketch talks serial but PSB is open or
  high - tie PSB to GND.
* STUCK - CS HIGH, NO CLOCK: the sketch uses U8G2_..._HW_SPI; Proteus 8.5's AVR
  never clocks hardware SPI in mode 3 - use U8G2_ST7920_128X64_1_SW_SPI on the
  same pins.
* GRAPHICS OFF (G = 0): the GDRAM is written but G is 0 - send 0x34, then 0x36
  (G is taken only when the chip is already in the extended set). U8g2 does
  this for you.
* GDRAM ADDRESS IN THE BASIC SET: the sketch sent 80 + Y, 80 + X without
  switching to the extended set first (0x34 / 0x36) - the bytes went to the text
  layer.
* BYTES LOST - SENT WHILE BUSY: wait 40 ms after power-on and 1.6 ms after
  CLEAR.
* Text and graphics mixed up: both layers show at once - clear the text layer
  (CLEAR, 0x01, in the basic set) or the GDRAM.
* The bottom half of a drawing appears in the top half, shifted right: the
  sketch writes rows 32 - 63 as GDRAM rows 32 - 63; on this module they are
  rows 0 - 31, words 8 - 15 (U8g2 does this for you).
* CONTRAST TOO LOW / TOO HIGH: set the CONTRAST property to 35 - 70 %.
* BACKLIGHT OFF: BLA to 5V and BLK to GND.
* Random dots at the start: the power-on GDRAM - normal until the sketch
  clears or draws.
* The part is not simulated / no panel: TEPLCD12864.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.
* Advance: the pop-up does not appear - click OPEN PANEL on the strip, or turn
  "Open the panel at Run" on its Settings page back on.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log an
…
Advertisement

Development1 release

  1. V1.0LCD 12864 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 lcd-12864-tep-v1-0-ad41f78ce1f24e7ba3bf0dbbd3673126.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (LCD-12864-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB and TEPLCD12864.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 and TEPLCD12864.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 LCD_12864_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 LCD_12864_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open LCD-12864-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

    LCD 128x64 Library for Proteus V1.0 (ST7920 128x64 + Arduino) explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8 Run the HEX file in the Uno Test Bench, in your browser

FAQs9 questionsContact TEP

How do I download LCD 12864 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?

LCD 12864 Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.8 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 10 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, 71b2e718b87ef8934595022c55d3aefc036ea57ccd80d7bd1fe03dae8885dcea. In PowerShell run Get-FileHash "lcd-12864-tep-v1-0-ad41f78ce1f24e7ba3bf0dbbd3673126.zip"; on macOS or Linux run shasum -a 256 "lcd-12864-tep-v1-0-ad41f78ce1f24e7ba3bf0dbbd3673126.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 · lcd-12864-tep-v1-0-ad41f78ce1f24e7ba3bf0dbbd3673126.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 30Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 13 Oct 2026Uploaded at
Last 14 days23 downloads
SHA-256 71b2e718b87ef8934595022c55d3aefc036ea57ccd80d7bd1fe03dae8885dcea
DocumentationLCD 128x64 Library for Proteus V1.0 (ST7920 128x64 + Arduino)
Advertisement

Comments

0

Join the conversation

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