Interfacing to a SCL1602 SPI LCD
I need some code help on interfacing a SCL SPI 2 X 16 LCD to a basic Stamp 2. I know I am in the stone age but sometimes you use what you have. I am using the Shiftout command and have everything set up for SPI not 12C and can get some characters on the LCD. The characters cannot be generated by using "Hello" etc. but seem to be generated by bringing up characters codes in the CGRAM of the SCL1602 character generator. I found this out by experimentation by creating a variable N (from 0 to 255). I create a for next loop and send out SHIFTOUT 9,8,1,[N,N]. The pin 8=clk,pin 9 =data and pin 10 is set for CS, MSBFIRST=1.Sometimes random characters are displayed but I see A,C,E ,etc, every other letter is seen. I still can't figure out why I have to send 2 'N's, but that's how I got it to work.
I have looked up various pieces of data on the SCL1602 and the graphics chip HD 44780 but no luck there. It seems with Arduino and Propeller, there are libraries already setup to use the LCDOUT function but the Basic Stamp 2 has no such command. I would really like to get some advice on control codes to send via Shiftout, so I can control and send characters to the LCD. Some say it is pointless to use such out of date methods, but getting partially there, I do think there is a solution to the problem. Any help would be appreciated. Thanks in advance, Stampman51