Connect LCD via SPI
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:
Documentation of PT6574:
Sample program from manufactor:
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