Content originally posted in LPCWare by nasib on Mon Dec 10 05:20:58 MST 2012
Quote: researchinnovation
Hi...!!!
Go to SSP.h and SSP.c files and change the settings, master mode, set the clock, mode, CPOL, CPHA and all.
And do little modification in your send function.
Check on this also
SSP_IOConfig(SPI0);
SSP_Init(SPI0)
Is this function able to set your SS pin
GPIOSetBitValue(CS0_PORT,CS0_BIT,CS0_OFF);
Check this also, that how are you sending data, check the parameters you are passing
SSP_Send(SPI0,(uint8_t *)buf,Lenght);
And find out the correct pins on Schematic diagram on board for SPI and then connect with OSCILLOSCOPE.
Thanks & Regards.... :-)
What do you mean with change master mode, set the clock, mode, CPOL, CPHA and all.?
I just know how to change master mode, but i don't know what are you meaning with the others.
do i have to use another special function ?
i use this "GPIOSetBitValue(CS0_PORT,CS0_BIT,CS0_OFF);" to set the CS. It change its value correctly but the program doesn't send the information !
have you got any example code?