Shop OBEX P1 Docs P2 Docs Learn Events
Help with KS0108 Driver — Parallax Forums

Help with KS0108 Driver

soshimososhimo Posts: 215
edited 2009-01-08 03:10 in Propeller 1
After wiring up my glcd correctly, and looking at the correct datasheet I'm getting output but it's garbled. Before I followed the an incorrect diagram NOT provided by the author of the code I was seeing a bunch of chinese letters (I think my model has a built in asian font). Now, after using the authors diagram, I'm seeing pixels, which is comforting, but the display is garbled. I've attached screenshot (sorry for the graininess, don't have the best digi) and a datasheet for the device. I've wired the device according the instructions in the driver test program. I even changed r/w and ri as the author tested with a model similar to mine and reported that he had to change those - same result. I'm pretty certain I have the device wired correctly as I tried reversing wires and received no output so I'm assuming that the ucontroller is talking to the lcd. One thing to note, in the example code the frequency and clockmode were commented out. I tried with both RC and 5Mhz x 16pll. Same results.
640 x 480 - 169K

Comments

  • Luis DigitalLuis Digital Posts: 371
    edited 2009-01-08 02:16
    Hello,

    I have only experience with the LCD 16x2, but a good place to practice is: LCD Info Page

    Also: in the hardware do not leave anything disconnect.
  • Erik FriesenErik Friesen Posts: 1,071
    edited 2009-01-08 02:38
    The controller on the datasheet you included is the ST7920. You will find detailed info here.

    www.sitronix.com.tw/sitronix/SASpecDoc.nsf/FileDownload/ST7920713600/$FILE/ST7920V40_E.pdf

    You will have to figure out how to initialize this display. Since it is displaying something already chances are that the write routine is working. However, the s6b0724 or t6963 code may be a more suitable starting point as the ks0108 driver is for dual controllers.
  • soshimososhimo Posts: 215
    edited 2009-01-08 03:10
    Thanks Erik. I figured it was talking to the chip somehow, it just wasn't talking the right "language" so to speak. I figured the protocol was incorrect or timings may be incorrect. Thanks again!
Sign In or Register to comment.