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]
Rating:
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.
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".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1322062882_sitronix_st7565__mikropascal_pic32.mpkg [38.29KB] | mikroPascal PRO for PIC32 |
|
*** 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.
This shows a Displaytech 64128N module connected to a LV32MXv6, and the familiar ME truck.
View full image