Connect LCD via SPI

Started by stephan_bauer01 November 11, 2006
Hello,

I'm a beginner an I need some help with connecting a LCD via SPI.
Sorry for my english.

I want to reprogram a existing board and I can't show data on the
display till now. At start up the display shows some random data
an I can switch the display on and off. The oscillator runs at 4MHz.

I'm using a 9S12DJ64 and a LCD called PT6574.
This is what I programmed till now:
http://forever29.fo.funpic.de/test/Sources.zip
Documentation of PT6574:
http://forever29.fo.funpic.de/test/PT6574.pdf
Sample program from manufactor:
http://forever29.fo.funpic.de/test/PT6574.ASM

The pins are connectet like this:
/INH 38 RW/PE2
CLK 70 PM5/TXCAN0/SCK0
CE 72 PM3/TXCAN0/SS0
DI 71 PM4/RXCAN0/MOSI0

Is there anybody out there who could look at the code I wrote?

Thanks in advance

Stephan