This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nordic NFR52832 Two Masters with FTDI SPI-USB Bridge

Hi all,

I am making a device which involves using nfr52832(PCA10040) to communicate with a NAND flash through spi to store data acquired from the ADC. After all the data has been stored, the device is then plugged into an FTDI spi-usb (C232hm) to download the data to the pc.

Therefore both the bridge and nordic chip will act as the master and talk to the NAND flash but only one will be talking to it at once. To facilitate this, I have configured them to share the same spi lines.

But I have noticed through testing in a breadboard, that when the the device is connected to the FTDI bridge, if the SCLK line(sharing other lines seems to be fine) is also connected to any pin on the dev board then I get garbage data from the NAND flash. Therefore I was wondering what are the effects of sharing spi lines even when only one master is communicating at any given time. Should I make sure that chip is off when connected to pc by putting a diode on the Vdd line, would this work? However effect is still there even when there is no power going to the dev board and only sharing SCLK line causes this issue. Do I need to use a quad 2-1 mux instead?

Thanks for the help

Regards, Bryan

Related