| 1 |
Graphic LCD modules for gpsim |
| 2 |
|
| 3 |
Directories: |
| 4 |
|
| 5 |
src/ -- source code for gpsim module |
| 6 |
examples/ -- PIC assembly code illustrating the module. |
| 7 |
utils/ -- Utility for converting PNG files into gpasm include files. |
| 8 |
doc/ -- Manufacturer data sheets |
| 9 |
|
| 10 |
The graphic LCD module is a gpsim module that simulates a Varitronix |
| 11 |
100 X 32 pixel graphic LCD. The graphics controller is a Seiko |
| 12 |
SED1520. Data sheets for the module and controller can be found in the |
| 13 |
doc/ subdirectory. The real display can be purchased from Mouser. |
| 14 |
|
| 15 |
(BTW, the Varitronix "data sheet" leaves much to be |
| 16 |
desired. Fortunately (for you) I've taken the time to understand how |
| 17 |
the real module behaves and wrote the simulation to mimic the actual |
| 18 |
device. The only (major) thing not supported at the moment is the LCD |
| 19 |
contrast. If you're using a real display, you'll need a negative |
| 20 |
supply of -1.0 to -2.0 volts tied to the "V0" pin. A relatively simple |
| 21 |
way to generate this is with a diode/resistor/capacitor voltage |
| 22 |
inverter driven from an oscillating I/O pin: |
| 23 |
|
| 24 |
C1 D2 |
| 25 |
PIC I/O -------||---+---|<---+---------+ |
| 26 |
0.01uF | | \ |
| 27 |
V D1 === C2 /<------ V0 contrast |
| 28 |
- | 0.01uF \ 100K pot |
| 29 |
| | / |
| 30 |
/// /// | |
| 31 |
/// |
| 32 |
|
| 33 |
None of the values are too critical. However, you may wish to add an |
| 34 |
addition resistor between D2 and the potentiometer just to protect the |
| 35 |
display against overdriving. |
| 36 |
|
| 37 |
This circuit is a classic negative voltage generator. When the PIC I/O |
| 38 |
is high, C1 charges through D1 to Vdd-0.7 volts. When the PIC I/O line |
| 39 |
drives low, D1 becomes reversed biased and C1 discharges though |
| 40 |
D2. The direction of the current is such that C2 becomes negatively |
| 41 |
charged. The potentiometer divides this negative voltage by a user |
| 42 |
selectable amount to created the LCD bias.) |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
Installing: |
| 47 |
---------- |
| 48 |
|
| 49 |
See INSTALL for directions on installing the graphic LCD module. Also, |
| 50 |
there are directions for running the example. |
| 51 |
|
| 52 |
|
| 53 |
BUGS: |
| 54 |
----- |
| 55 |
|
| 56 |
Module Update - the graphic module doesn't automatically update |
| 57 |
itself. |
| 58 |
|
| 59 |
gtk-2.6 segv - the graphic module doesn't run in pre-gtk-2.8. |
| 60 |
|