How to test the SPI program in LPCopen

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to test the SPI program in LPCopen

323件の閲覧回数
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 件の賞賛
返信
1 返信

270件の閲覧回数
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 件の賞賛
返信