TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139271 times)
  2. FAT32 Library (71757 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47433 times)
  5. Network WiFi Library (43098 times)
  6. FT800 Library (42409 times)
  7. GSM click (29835 times)
  8. mikroSDK (28106 times)
  9. PID Library (26886 times)
  10. microSD click (26200 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

Sitronix ST7565 LCD driver

Rating:

5

Author: Larry Reisinger

Last Updated: 2012-07-19

Package Version: 1.0.0.0

Category: Graphics & LCD

Downloaded: 2333 times

Not followed.

License: MIT license  

Basic routines for Sitronix ST7565 series LCD driver with parallel interface This is used in many 128x64 COG units, and the DOGM modular system. This was developed and tested on PIC32, but should run directly on PIC24 and 18, and with slight modifications on AVR.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Sitronix ST7565 LCD driver" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Sitronix ST7565 LCD driver" changes.

Do you want to report abuse regarding "Sitronix ST7565 LCD driver".

  • Information
  • Comments (2)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

*** UPDATE 6/6/12 ***

I discovered some wrong codes in the constants section (but it worked with the Displaytech unit anyway!). The correct codes are:

BoffVRoffVFoff      : byte = 0x28; // Power controller settings

BoffVRoffVFon       : byte = 0x29;

BoffVRonVFoff       : byte = 0x2A;

BoffVRonVFon        : byte = 0x2B;

BonVRoffVFoff       : byte = 0x2C;

BonVRoffVFon        : byte = 0x2D;

BonVRonVFoff        : byte = 0x2E;

BonVRonVFon         : byte = 0x2F;

ResistRatio         : byte = 0x20; // Add 0-7 to this       

Also, I successfully used this with a Newhaven NHD-C12864GG-RN-GWB module. The initialization codes that work with the Newhaven are:

const newhaven : array[20] of byte = (

0xA0, //   ADC nornal

0xAE, //   Turn display OFF

0xC8, //   Reverse scan

0xA2, //   1/9 bias

0x2F, //   Set power to Booster, Reg, Follower all ON

0x26, //   Resistor Ratio 6

0x81, //   Set electronic volume

0x0C, //   to 0C (12 dec)

0xAF, //   Turn display ON

NOOP, NOOP, NOOP, NOOP, NOOP, NOOP, NOOP, NOOP, NOOP, NOOP, NOOP);

FWIW, all caps used with the Newhaven display are 1 uf. 

*** End Update 6/6/12 ***

The documentation is in the attached PDF. 


The ST7565 is used in several inexpensive COG and backlit LCD modules from several manufacturers. It is 128x64 monochrome (the chip is actually capable of 131x65, but most commercial glass is limited to 128x64, so the library is built around 128x64). This is the same as the KS0108, so software and images (such as the mE truck) are directly portable. The ST7565 units are typically smaller than the KS0108 units, and may not be a good "drop in" replacement in all cases. 

The ST7565 chip is much more comprehensive than the KS0108, which is both an advantage and a disadvantage. It's an advantage, because the voltage inversion and contrast generation is all on-chip, so there's no need for external power circuitry (other than a series of capacitors). The disadvantage is that this makes the initialization more complicated, because of all the voltage parameters that need to be set. The KS0108 runs on 5v, the complete ST7565 module will run on 3.3.

This is tested with the Displaytech 64128N module, and an initialization string is furnished from the DOGM data sheet, so this should be easy to use with the DOGM system. Anything else might require adjustment to voltage parameters, and if someone gets another model to work, please post the initialization string here.

The ME truck on a Displaytech 64128N module.

The ME truck on a Displaytech 64128N module.

This shows a Displaytech 64128N module connected to a LV32MXv6, and the familiar ME truck.

View full image

ALSO FROM THIS AUTHOR

Honeywell I2C pressure sensor

5

A simple function to read any Honeywell I2C pressure sensor. This function returns a 14-bit word, and the actual pressure depends on the range of the particular unit. The code can be fairly easily modified to also read device temperature and status bits if desired.

[Learn More]

Microchip MCP7940N RTC example

0

This is too small to bother with a library, these are just some snippets of code that have been tested with a Microchip MCP7940N RTC.

[Learn More]