hello
I use LPC H2129 with µvision, I wants to communicate with the SPI to order one LCD. I took the code from Philips but not work, (I sees nothing on the oscilloscope) I joint you it , thank you for the assistance
#include"LPC21xx_keil.h"
void Initialize(void);
/* Macro Definitions */
#define SSEL 7
/************************* MAIN *************************/
int main()
{
IOSET0=(1<<SSEL);
Initialize();
/* Do forever */
while(1)
{
/* Write data out */
S0SPDR=0xCA;
/* Wait for transfer to be completed */
while(!(S0SPSR &0x80)){}
}
}
/*************** System Initialization ***************/
void Initialize()
{
/* Configure Pin Connect Block */
PINSEL0=0x5500;
/* Set pclk to same as cclk */
VPBDIV=0x1;
/* Set to highest speed for SPI at 10 MHz- > 1.25 MHz */
S0SPCCR=0x8;
/* Device selected as master */
S0SPCR=0x20;
}
/*****************************