HELP with SPI problem LPC1769 (SOLVED)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HELP with SPI problem LPC1769 (SOLVED)

1,011 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by otxoasound on Mon Feb 16 10:51:33 MST 2015
Hi everybody!
         I am trying to set up SPI communications in my LPC1769. It is the first time I use SPI. The problem is that when I send data, all is ok except when I try to send 0x00. I use my oscilloscope and I can see the clock line and MOSI line switching as it shoulds when I send 0x01, 0x02, 0x03 and so on, but I see nothing when I send 0x00.

                         Somebody could help? Thanks in advance!!
标签 (1)
0 项奖励
回复
2 回复数

1,000 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by otxoasound on Mon Mar 23 11:02:08 MST 2015
Hi!

       The problem was my scope. I set the SCKL pin as the trigger source and now I am able to see how the uC is sending the byte 0x00.
                
                         Thank you for your help.
0 项奖励
回复

1,000 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by embd02161991 on Fri Feb 20 14:50:22 MST 2015
Hi,

Do you see the SPI CLK when you send 0x00 data ? Since data is 0x00, the data line will be low for the corresponding clock cycles.

Have you tried using LPCOpen examples ?
http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc17xx-packages

Thanks,
NXP Technical Support
0 项奖励
回复