Tags: 16F1519, KS0108B, Assembly, NHD12864MZ, GLCD
This project was to develop a graphical display for the Memsic accelerometer described in my previous blog entry. Eventually, the sensor and display will be connected by a wireless link. The circuit was constructed on a typical breadboard:
Here is the schematic:
The display is from Newhaven Display International (NHD12864MZ-FSW-GBW-L) and has two KS0108B controllers to give a 128x64 pixel screen.
The program is highly, probably overly commented. It is included here as an Assembly file. You may want to change the extension to .txt for ease of opening. There is not a lot to add. I tried to follow the procedures recommended by Newhaven Display for powering up and down. I understand from comments by others that strict adherence to that timing sequence is probably not necessary. A large font (10x14) was developed to facilitate reading the tilt values from a distance. Here is a demo of both fonts:
Special thanks are owed to Mike Webb (Pommie) and Mike Mclaren (K8LH) for a substantial part of the program included here. GLCD Font Creator (MikroElektronika) was used in development of the large font.
View attachment GLCD_16F1519_Template_10x14.asm