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 a hyundai hp12542r (using pollin's display module kit) 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
hyundai hp12542r display module kit:
attention
description
hyundai hp12542r display modules are controlled using an on-board controller sed1565.
specifications | |
---|---|
resolution | 132x64 |
colours | monochrome |
controller | sed1565 |
backlight | yes |
adjustable contrast | yes, programmable |
dimensions | module: 64.1 x 52.2 mm, display area: 54 x 27 mm (pollin manual) |
name in serdisplib | "HP12542R " (example:
serdisp_init(sdcd, "HP12542R", ""); ) |
some images
hp12542r showing a test image | output generated by graphlcd |
top ^
connecting a hyundai hp12542r display module to the parallel port:
intro
hp12542r was connected using pollin's 'lc-display module-kit'. so the wiring was 'pre-defined'.
addressing
annotations
sed1565 supports a max. resolution of 132x65, but hp12542r display modules only use 132 x 64.
pages vs. rows
the display is organised in colums and pages: 8 pixel-rows are combined to a so called page.
as only whole bytes can be transferred to the display, a single pixel cannot be changed without knowing its 7 'neighbour' pixels.
so a display buffer was introduced in the library. pixel changes are all done in this buffer and in a separate step only changed 'page bytes' are transferred (using an optimising algorithm) to the display.
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, "HP12542R", "ROTATE=90;INVERT=YES");
options
identifier | short | remark | default |
---|---|---|---|
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 | 2 | |
CONTRAST | set display contrast | 5 | |
BACKLIGHT | BG | switch background light on or off | 0 |
WIRING | WIRE | pre-defined or customisable wiring | 3 |
ranges, aliases
identifier | range | aliases |
---|---|---|
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 |
CONTRAST | [0, 10] | |
BACKLIGHT | 0, 1 | YES=1, NO=0, TRUE=1, FALSE=0, ON=1, OFF=0 |
pre-defined wiring definitions
identifier | numeric id | protocol | description |
---|---|---|---|
ParDTHyundai | 3 | PAR | Pollin Wiring for Hyundai HP12542R display module kit, parallel data transfer |
display signals
identifier | description | mandatory |
---|---|---|
D0 - D7 | 8 bit wide data bus | * |
A0 | data or command | * |
CS | chip select input, active low | * |
RW | read/write signal (read: high, write: low) | * |
RESET | reset signal, active low; optional if wired to a hardware reset circuit |
annotations
- serdisplib driver sed156x supports more than one different types of displays.
- only wiring 3 (or "
ParDTHyundai
") is applicable for hyundai hp12542r display module kits (the proper wiring is set by default by serdisplib when using display name "HP12542R
"). - no backlight support at the momemt
top ^
links:
data sheets | |||
---|---|---|---|
sed1565 controller | data sheet for SED 1565 | (english) | sed1565.pdf |
hyundai hp12542r display module | data sheet for Hyundai HP12542R display module | (german) | HP12542R-DYO.pdf |
top ^