sed1330 driver: Add support for HG25504 (L. Lagendijk)

This commit is contained in:
mmdolze
2011-01-03 10:46:07 +00:00
parent e7c4240e58
commit a0e30b34b5
3 changed files with 41 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@ Key:
* Something changed / fixed
v.0.5dev (ongoing development)
+ sed1330 driver: Add support for HG25504 (L. Lagendijk)
v0.5.4
* Update driver includes and LDFLAGS (fixed glk and bayrad binding error)
+8 -1
View File
@@ -14,11 +14,13 @@ The displays are driven in text mode using their built-in character generator.
<sect2 id="sed1330-connections">
<title>Connections</title>
<warning>
<para>
Connections below are for the G242C, G121C and G321D displays.
Always consult documentation about the specific display before asuming
the connections given here are also correct for your display !
</para>
</warning>
<table id="sed1330-connections.classic-by-lcd">
<title>ConnectionType <literal>classic</literal> ordered by LCD pins</title>
@@ -586,7 +588,8 @@ use the following circuit.
<parameter><literal>G242C</literal></parameter> |
<parameter><literal>G191D</literal></parameter> |
<parameter><literal>G2446</literal></parameter> |
<parameter><literal>SP14Q002</literal></parameter>
<parameter><literal>SP14Q002</literal></parameter> |
<parameter><literal>HG25504</literal></parameter>
}
</term>
<listitem>
@@ -628,6 +631,10 @@ use the following circuit.
<entry><literal>SP14Q002</literal></entry>
<entry>320 x 240</entry>
</row>
<row>
<entry><literal>HG25504</literal></entry>
<entry>320 x 240</entry>
</row>
</tbody>
</tgroup>
</informaltable>
+32
View File
@@ -154,6 +154,30 @@
*
* The G242C generates -24V internally. It is available on Vlc.
*
* Connections below are for the HG25504 displays.
* Always consult documentation about the specific display before asuming
* the connections given here are also correct for your display !
*
* Ordered by LCD pins
* LCD pin? <---> pin LPT port
* Frame 1 GND
* Vss 2 GND 18..25 GND
* Vdd 3 +5V
* Vo 3 potmeter
* ^RESET 5 1 ^STROBE
* ^RD 6 +5V
* ^WR 7 16 ^INIT
* ^CS 8 GND
* A0 9 17 ^SELECT_IN
* D0 10 2 D0
* D1 11 3 D1
* D2 12 4 D2
* D3 13 5 D3
* D4 14 6 D4
* D5 15 7 D5
* D6 16 8 D6
* D7 17 9 D7
*
* To generate -24 from the +5V without an external power source, you can
* use the following circuit.
*
@@ -258,6 +282,7 @@
#define TYPE_G191D 4
#define TYPE_G2446 5
#define TYPE_SP14Q002 6
#define TYPE_HG25504 7
#define SCR1_L 0x00 // Memory locations
#define SCR1_H 0x00
@@ -407,6 +432,10 @@ sed1330_init( Driver * drvthis )
p->type = TYPE_SP14Q002;
p->graph_width = 320;
p->graph_height = 240;
} else if(strcmp(s, "HG25504") == 0) {
p->type = TYPE_HG25504;
p->graph_width = 256;
p->graph_height = 128;
} else {
report(RPT_ERR, "%s: Unknown display type %s", drvthis->name, s);
return -1;
@@ -570,6 +599,9 @@ sed1330_init( Driver * drvthis )
case TYPE_G191D:
data[4] = 0x5c; // ?
break;
case TYPE_HG25504:
data[4] = 0x7F; // Confirmed
break;
default:
return -1;
}