How to test the SPI program in LPCopen

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to test the SPI program in LPCopen

232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sravansreeram on Wed Jul 01 23:56:47 MST 2015
Hello all,
I am a beginner to LPC xpresso.
I am using the the SPI program for LPC1347 micro controller from the LPC open libraries.
How do I check if the packets that are being transmitted are received ?
Can someone tell me how to test and check if the program is working?

Thanks in advance
0 Kudos
1 Reply

179 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Superfred on Thu Jul 02 01:23:27 MST 2015
Hello,

the microcontroller im master mode simply sends out the SPI packet on the MOSI pin, but cannot tell if the data is well received.
Even with no SPI device connected the transfer will work.

But many SPI devices send some data back during the transfer (or respond to commands) on the MISO pin, so you can analyze this response, maybe by logging it out via UART.

Or connect an oscilloscope or a logic analyzer to the CLK and MOSI pins....

Wihout more information about the type of SPI device you want to communicate I cannot help you more.

Fred
0 Kudos