Shop OBEX P1 Docs P2 Docs Learn Events
How to program SPI LCD-Display — Parallax Forums

How to program SPI LCD-Display

SteinStein Posts: 3
edited 2004-12-18 01:31 in BASIC Stamp
I got some real inexpensive 2*16 LCD display, thinking they must be serial or parallel.
·
But, they are SPI. (Type: HAC-162J)
·
I then sourced the web for some info, but can only find one reference·using some other uP.
(See attachment)
·
And I can’t find any datasheet on this SPI Display.
·
I think a N/V column had a project ones using SPI Display, but can’t find it.
·
Anybody out there heard about SPI LCD?
·
stein.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-15 22:45
    If it's SPI then the SHIFTOUT function is what you'll use to send data to the display.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • SteinStein Posts: 3
    edited 2004-12-16 01:52
    I tried some Shiftout lines earlier today, but it had no effect on the display.
    ·
    I think I need to setup the display first, like we do with·a parallel display.
    But that is hard to do when I don't even have·the datasheet.
    ·
    I was hoping that someone accidentally had some code I could work from.
    Was I mistaken about an N/V column using SPI LCD?
    ·
    Stein
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-16 03:58
    Yes, I think so. I created an LCD controller for my column with the MCP23016 -- an I2C device; perhaps that's what you were thinking about.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • RickBRickB Posts: 395
    edited 2004-12-17 16:41
    Stein:

    I did a google search with your p/n and lcd, and came up with bs2 code in french. There appears to be a data sheet also. Try the translate function also.

    Rick
  • SteinStein Posts: 3
    edited 2004-12-17 23:20
    How did I miss that in my web source?

    Yes, that BS2 program was working fine.
    But the program only works with a BS2 and not BS2p. I don’t know why.

    I will study the “simple” codes and revile a more complete code when I finish, so other stampers can study later.

    Thanks.
    Stein.
  • RickBRickB Posts: 395
    edited 2004-12-18 01:31
    Stein:

    I am not terribly fluent in BS2 programming but, there may be speed dependent code here. The BS2p is faster and that may be a·problem with the existing code.

    Rick
Sign In or Register to comment.