sharp m078cka
generic lh155 support

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.

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

[sharp240 testserdisp] [sharp240 graphlcd]
test image generated by testserdisp output generated by graphlcd
[sharp240 multidisplay]  
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 to D7 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 to GND
  • /RD needs to be connected to VDD
     
  • 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 and VDD)!
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 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

identifiershortremarkdefault
WIDTHWwidth of display240
HEIGHTHheight of display64
ROTATEROTrotate display (1 == 180 degrees)0
INVERTINVinvert display0
DELAY delay after each write/read operation.
  0 .. no delay
  1 .. one call of gettimeofday()
 >1 .. delay at least x nanoseconds
     
0
WIRINGWIREpre-defined or customisable wiring0

ranges, aliases

identifierrangealiases
WIDTH<=240; a multiple of 8 
HEIGHT<=64 
ROTATE0, 1, 90, 180, 270YES=180, NO=0, TRUE=180, FALSE=0
INVERT0, 1YES=1, NO=0, TRUE=1, FALSE=0
DELAY>= 0NONE=0

pre-defined wiring definitions

identifiernumeric idprotocoldescription
Original0PAROriginal wiring

display signals

identifierdescriptionmandatory
D0 - D78 bit wide data bus*
RSdata (low) or command (high)*
CSchip select input, active low*
WRwrite signal, active low*
RDread signal, active low 
RESETreset signal, active low; optional if wired to a hardware reset circuit 
BACKLIGHTbacklight, 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 ^

history:

2007-03-22 fixed erraneous range informations
2007-03-18 first release
top ^

design by wolfgang astleitner, (C) 1998 - 2007