Searching \ for '[PIC]: Bit-bang LCD driving' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/io/lcd/pic.htm?key=lcd
Search entire site for: 'Bit-bang LCD driving'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Bit-bang LCD driving'
2004\04\25@175348 by Philip Pemberton

face picon face
Hi,
 I've just been given an Optrex DMF50073N graphics LCD. Rather typically,
this particular LCD doesn't have an "intelligent" controller - in other
words, I have to scan it manually, using the XSCL, FLM, LP, M, D0, D1, D2 and
D3 lines.
 Has anyone tried bit-banging an LCD of this type before? At this point,
some sample code or flowcharts would be very useful. In addition, if anyone's
got a datasheet for this particular LCD lying around anywhere, please email
me. I'll cover the costs of getting the datasheet copied or scanned - at this
moment in time, all I've got is the pinout...
 I noticed the "X-Y LCD plotter" entry for the 2002 Circuit Cellar "Flash
Cash" contest did this sort of thing using a 10MHz PIC. Unfortunately for me,
I can't make head nor tail of the code :-/

Thanks.
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
spam_OUTphilpemTakeThisOuTspamdsl.pipex.com              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.dsl.pipex.com/  | 48xCD, ARCINv6c IDE, SCSI
... I didn't know it was impossible when I did it.

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu

2004\04\26@040934 by cdb

flavicon
face
Elektor has some code you can download from their May and Jun 2003
issues.

Colin

--
cdb, bodgy1spamKILLspamoptusnet.com.au on Monday,26 April,2004

I have always been a few Dendrites short of an Axon and believe me it
shows.

Light travels faster than sound. That's why some people appear bright
until they speak!

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\04\26@102238 by M. Adam Davis

flavicon
face
It's something I have on my back burner - no code, but not difficult to
do.  Most of these interfaces are similar, so even if you get the data
sheet for the common epson 640x480 display, or the pda displays
available from http://www.earthlcd.com then you'll get the basic idea.

The tricky part is finding out how the d0-4 actually maps to the disply
once you're generating the other signals correctly.  Typically you'll
find one wire that resets all the latches and output drivers, one that
latches in one line of data, one that latches in 4 bits on one line, and
one that gives the polarity of the signal (you want an average voltage
of 0 over the display, so you invert the polarity of the entire display
each frame.  You'll also have to invert your data lines to match)

A quick read over one of the pda data sheets above will give you a good
idea.  The hard part for you may be determining the correct voltage
requirements.

-Adam

Philip Pemberton wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\04\26@103910 by Jan-Erik Soderholm

face picon face
> >Hi,
> >  I've just been given an Optrex DMF50073N graphics LCD.

Have you tryed the "DMF 5000 SERIES USERS MANUAL" ?

For some reason, I can't find *exactly* your part number
either in the manual or by searching the Optrex site...

Jan-Erik.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\04\26@141207 by Philip Pemberton

face picon face
In message <200404261439.i3QEdrr16003spamspam_OUTd1o402.telia.com>>          Jan-Erik Soderholm <@spam@jan-erik.soderholmKILLspamspamTELIA.COM> wrote:

> > >Hi,
> > >  I've just been given an Optrex DMF50073N graphics LCD.
>
> Have you tryed the "DMF 5000 SERIES USERS MANUAL" ?
That only covers the "intelligent" GLCDs, i.e. the ones with a Hitachi or
Epson GLCD controller. This one just has the row and column drivers fitted.

> For some reason, I can't find *exactly* your part number
> either in the manual or by searching the Optrex site...
Same here :-/

Thanks,
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
KILLspamphilpemKILLspamspamdsl.pipex.com              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.dsl.pipex.com/  | 48xCD, ARCINv6c IDE, SCSI
... DOS Tip #3 : Don't use DOS.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\04\26@191222 by Philip Pemberton

face picon face
In message <200442618106.397227@laptop>
         cdb <RemoveMEbodgy1TakeThisOuTspamOPTUSNET.COM.AU> wrote:

> Elektor has some code you can download from their May and Jun 2003
> issues.
I've been reading through the "Simple LCD driver" article from those issues,
as well as the code. Unfortunately, 8051 assembler isn't the easiest thing to
port over to a PIC...

Later.
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
spamBeGonephilpemspamBeGonespamdsl.pipex.com              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.dsl.pipex.com/  | 48xCD, ARCINv6c IDE, SCSI
... What are you doing?!? The message is over,GO AWAY!

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\04\27@043335 by Philip Pemberton

face picon face
part 1 1703 bytes content-type:text/plain; charset=us-asciiIn message <TakeThisOuT408D1ADE.7000301EraseMEspamspam_OUTubasics.com>
         "M. Adam Davis" <RemoveMEadampicspamTakeThisOuTUBASICS.COM> wrote:

> A quick read over one of the pda data sheets above will give you a good
> idea.  The hard part for you may be determining the correct voltage
> requirements.
-25V (negative twenty-five volts) for the contrast control, +5V for the ICs.
Turns out you don't need to invert the bits when you flip the state of the
"M" (signal polarity) line. Well, you don't have to flip the bits on this
LCD - I'm not sure about other LCDs...
I've got a stable image on the LCD - just a 0x33 test pattern (two pixel rows
off, followed by two on, then two off, hen two on again) repeated endlessly
over the display. It seems my display isn't a 240x128 - it's a 480x200. Or,
at least, it _seems_ to be a 480x200. If I only clock in 240 pixels, the
right half of the display is filled with garbage, while my test pattern
covers the left half. If I only clock in 128 lines, two segment lines get
fired at the same time - IOW, the top part of the display gets repeated about
3/4 of the way down. Live and learn, I suppose...
And just because I'm in a good mood today (!), I've attached my test code to
this message. It doesn't do much at the moment, though...

Later.
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
philpemEraseMEspam.....dsl.pipex.com              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.dsl.pipex.com/  | 48xCD, ARCINv6c IDE, SCSI
... I can't think of anything witty to say right now.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics




part 2 5396 bytes content-type:application/riscos; name="OptrexDMF.asm"; load=&ffffe44c; exec=&a61beb10; access=&03 (decode)

2004\04\29@050300 by dr. Imre Bartfai

flavicon
face
On Tue, 27 Apr 2004, Philip Pemberton wrote:

> In message <200442618106.397227@laptop>
>           cdb <EraseMEbodgy1spamOPTUSNET.COM.AU> wrote:
>
> > Elektor has some code you can download from their May and Jun 2003
> > issues.
> I've been reading through the "Simple LCD driver" article from those issues,
> as well as the code. Unfortunately, 8051 assembler isn't the easiest thing to
> port over to a PIC...

That´s why the Parallax-style assembler (now CVASM) was found out... ;-)

Regards,
Imre


{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservspam_OUTspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\29@183343 by Philip Pemberton

face picon face
Woops, I just found a major bug in the code I posted... Replace this segment
of code:
;;;;;;;;;
       SWAPF   DISPBYTE,       F                                       ; Swap nibbles
       MOVF    DISPBYTE,       W                                       ; Move data byte into W
       MOVWF   LCD_DATA                                                ; Save
       BSF             LCD_XSCL                                                ; Strobe clock
       BCF             LCD_XSCL
                               ENDM
with:
;;;;;;;;;
       SWAPF   DISPBYTE,       W                                       ; Swap nibbles
       MOVWF   LCD_DATA                                                ; Save
       BSF             LCD_XSCL                                                ; Strobe clock
       BCF             LCD_XSCL
                               ENDM

Later.
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
RemoveMEphilpemTakeThisOuTspamspamdsl.pipex.com              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.dsl.pipex.com/  | 48xCD, ARCINv6c IDE, SCSI
... BNFL : Buy No Fish Locally

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspamspamspamBeGonemitvma.mit.edu with SET PICList DIGEST in the body

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...