HELP with SPI problem LPC1769 (SOLVED)

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

HELP with SPI problem LPC1769 (SOLVED)

362 Views
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!!
Labels (1)
0 Kudos
2 Replies

351 Views
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 Kudos

351 Views
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 Kudos