Karim Roukoz

XDT512: SPI bus & LCD display

Discussion created by Karim Roukoz on Jun 25, 2007
Latest reply on Jul 2, 2007 by Steve Mcaslan
Hello,

I am trying to use the SPI on an CSM12DXDT512 on a PBMCUSLK project board to communicate with the board's lcd display.
I have understood the routines of both SPI and LCD, however, i am not able to output anything to the LCD.
I don't think i am actually writing anything on the SPI bus, as I have tried to go trough a step by step run of my code, and nothing is hapening at the output pins (which i connected to LEDs for monitoring).

The XDT512 has 3 SPI channels, and i'm using SPI0, as the board's LCD is connected to it's pins on the MCU PORT.

Here is the piece of code I wrote. Please let me know if there's anything I'm doing wrong.

Outcomes