SPI MISO is not Reading Data

3 posts / 0 new
Last post
Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
SPI MISO is not Reading Data

Hi,

I am using a SPI slave device which has only SDO, CS and SCLK. When I connect SDO to any of the Analog pins(P_0.0 to P_0.3 ) or Port 1 pins my data is read correctly.
If I use the pins P_0.5, P_0.6, P_0.7 DA14580 is reading only 0's. What might be the problem on these pins?
Is it possible to use these pins as SPI data lines?

Thank you
Bharath

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 34
Hi Bharath,

Hi Bharath,

Have you properly configured those pins to in order to have SPI functionallity, i dont see anything wrong for using those pins for SPI communication, as a matter of fact the P05 and P06 pins are the predefined pins used as MISO and MOSI pins for interacting with the SPI flash and are also the pins that is used from 580 during the booting sequence for booting from a flash device, perhaps the data emmited during the booting procedure affect the SPI device that you have attached or something like that. Other than that you can definitely use that pins as SPI lines.

Thanks MT_dialog

Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
Hi MT_dialog,

Hi MT_dialog,

The problem is solved. In the code these pins were set as RTS and CTS pins after I initialize them as SPI lines. I corrected the code now.

Thank you
Bharath