Shop OBEX P1 Docs P2 Docs Learn Events
Need pasm gurus help! Nokia lcd — Parallax Forums

Need pasm gurus help! Nokia lcd

Alexis64Alexis64 Posts: 42
edited 2011-05-21 07:57 in Propeller 1
I have designed a development board (yet another) which uses the 6100 NOKIA LCD (6610 compatible). The problem is that a bunch of LCDs that I bought uses the EPSON controller and some uses the PHILIPS one.

I am using Micah's driver since it's extreamely fast and tiny but she has a bug when switching to PHILIPS where the horizontal axis are reversed. I contacted here but she has no time to fix it :( ...

Thank you for taking a look

the PHILIPS LCD DISPLAYS THE DEMO AS:
photo.JPG


WHICH IS SWAPPED HORIZONTALLY ...
602 x 394 - 150K

Comments

  • Alexis64Alexis64 Posts: 42
    edited 2011-05-20 18:04
    anyone? kuroneko, jazzed? :) ...............................
  • ColeyColey Posts: 1,112
    edited 2011-05-21 02:33
    I haven't got one of these screens but have you looked at the x,y mirror variable?
    initPhilips   word  PCF_SLEEPOUT        ' Out of sleep mode
                  word  PCF_INVON           ' Inversion ON (seems to be required?)
                  word  PCF_COLMOD, $103    ' Color mode = 12 bpp
                  word  PCF_MADCTL, $1C8    ' Mirror X/Y, reverse RGB
                  word  PCF_SETCON, $130    ' Set contrast
                  word  0
    
    I'm not saying that's what is causing this but might be a good place to start looking ;)

    Regards,

    Coley
  • kuronekokuroneko Posts: 3,623
    edited 2011-05-21 02:42
    Coley wrote: »
    I haven't got one of these screens but have you looked at the x,y mirror variable?
    Seconded. $188 looks like a good candidate.
  • LeonLeon Posts: 7,620
    edited 2011-05-21 04:50
    Or, use a mirror. :)
  • Alexis64Alexis64 Posts: 42
    edited 2011-05-21 05:59
    Swapping the
     word  PCF_MADCTL, $1C8    ' Mirror X/Y, reverse RGB  
    

    to
     word  PCF_MADCTL, $188    ' Mirror X/Y, reverse RGB  
    

    fixed the problem!

    I feel frustratingly stupid right now as I played with that value before and could not get it to work.

    How did you worked out the $188 (I understand the $1 (data/cmd), but how the $88 ?)

    Thank you both. Truly appreciated.
  • kuronekokuroneko Posts: 3,623
    edited 2011-05-21 06:14
    Alexis64 wrote: »
    How did you worked out the $188 (I understand the $1 (data/cmd), but how the $88 ?)
    Bit 7 controls mirror Y and bit 6 does the same for mirror X, %1YX--C---. $1C8 mirrors both, $188 only mirrors Y (%110--1---) and leaves X alone. It's all in the data sheet (6.2.27 MEMORY DATA ACCESS CONTROL).
  • Alexis64Alexis64 Posts: 42
    edited 2011-05-21 07:57
    I missed it obviously -- i was able to flip it both axis but didn't read it well enough and thought I had to reverse the data stream in the program itself (ror instead of rol etc ..) ...

    Thanks again.
Sign In or Register to comment.