disclaimer / info:
DISCLAIMER:
THIS IS EXPERIMENTAL SOFTWARE AND HARDWARE. USE AT YOUR OWN RISK. THE MAINTAINER(S) OF THESE PAGES AND THE DEVELOPER(S) OF SOFTWARE AND HARDWARE PRESENTED ON THESE PAGES CAN NOT BE HELD LIABLE UNDER ANY CIRCUMSTANCES FOR DAMAGE TO HARDWARE OR SOFTWARE, LOST DATA, OR OTHER DIRECT OR INDIRECT DAMAGE RESULTING FROM THE USE OF THIS SOFTWARE OR HARDWARE. IF YOU DO NOT AGREE TO THESE CONDITIONS, YOU ARE NOT PERMITTED TO USE OR FURTHER DISTRIBUTE THIS SOFTWARE OR TO USE ANY TEMPLATES FOR BUILDING HARDWARE PRESENTED HERE.
- this page deals with connecting sharp h155-based display to a parallel port and drive it using
serdisplib
- i'm not responsible for the content of external web pages
- external web pages will generally open in separate browser windows or tabs
- english is not my native language. please keep that in mind (corrections of english grammar and formulations are very welcome!)
- email: mrwastl at users.sourceforge.net
sharp m078cka-a3qkla0057:
nota bene
only 8080-mode supported for now!
description
sharp m078cka displays are controlled by a sharp lh155 controller.
specifications | |
---|---|
resolution | 240 x 64 |
colours | monochrome |
controller | Sharp LH155 |
adjustable contrast | no |
backlight | no |
dimensions | module: 88.5 x 77.4 mm, display area: 72 x 32 mm (datasheet) |
name in serdisplib |
"SHARP240 " (example: serdisp_init(sdcd, "SHARP240", ""); ) |
some images
test image generated by testserdisp |
output generated by graphlcd |
floyd steinberg dithered and straightened image generated by multidisplay |
top ^
connecting a sharp m078cka display display to the parallel port:
intro
serdisplib supports the wiring descripted in the PDF distributed by pollin and only 8080-mode for now. but customisable wiring is possible anyways ...
pre-defined wiring
D0
toD7
are wired to pin 2 to 9-
/WR .. pin 1 (nSTRB) RS .. pin 14 (nAUTO) /RES .. pin 16 (INIT) /CS .. pin 17 (nSELIN)
M86
needs to be connected toGND
/RD
needs to be connected toVDD
- use 1 kOhm protection resistors or similar for
D0 - D7
,/WR
,RS
,/RES
,/CS
, and/RD
to protect parallel port and display controller (protection resistor between/RD
andVDD
)!
top ^
using the driver for generic lh155-based displays:
intro
the driver should be able to support generic lh155-based displays, though only sharp m078cja displays have been tested so far.
description
- only 8080-mode is supported so far
- wiring needs to be set through customisable wiring
- width and height need to be set using options
top ^
passing options through serdisp_init():
intro
using the third parameter of
common information about passing options and customisable wiring can be found in a separate document.
serdisp_init()
, driver specific options and custom wiring can be set.common information about passing options and customisable wiring can be found in a separate document.
examples: serdisp_init(sdcd, "SHARP240", "WIDTH=240;HEIGHT=128;INVERT=YES"); serdisp_init(sdcd, "LH155", "W=240;H=64;WIRING=Original");
options
identifier | short | remark | default |
---|---|---|---|
WIDTH | W | width of display | 240 |
HEIGHT | H | height of display | 64 |
ROTATE | ROT | rotate display (1 == 180 degrees) | 0 |
INVERT | INV | invert display | 0 |
DELAY | delay after each write/read operation.0 .. no delay 1 .. one call of gettimeofday() >1 .. delay at least x nanoseconds | 0 | |
WIRING | WIRE | pre-defined or customisable wiring | 0 |
ranges, aliases
identifier | range | aliases |
---|---|---|
WIDTH | <=240; a multiple of 8 | |
HEIGHT | <=64 | |
ROTATE | 0, 1, 90, 180, 270 | YES=180, NO=0, TRUE=180, FALSE=0 |
INVERT | 0, 1 | YES=1, NO=0, TRUE=1, FALSE=0 |
DELAY | >= 0 | NONE=0 |
pre-defined wiring definitions
identifier | numeric id | protocol | description |
---|---|---|---|
Original | 0 | PAR | Original wiring |
display signals
identifier | description | mandatory |
---|---|---|
D0 - D7 | 8 bit wide data bus | * |
RS | data (low) or command (high) | * |
CS | chip select input, active low | * |
WR | write signal, active low | * |
RD | read signal, active low | |
RESET | reset signal, active low; optional if wired to a hardware reset circuit | |
BACKLIGHT | backlight, optional |
top ^
links:
controller Sharp LH155 | |||
---|---|---|---|
technical reference | local copy of Sharp LH155 technical reference | (english) | lh155.pdf |
display Sharp M078CKA-A3QKLA0057 | |||
short reference | short description, wiring; local copy | (german) | Sharp M078CKA-A3QKLA0057.pdf |
top ^