Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5349

MicroPython • Re: conflict between peripherals

$
0
0
Thanks for clarifying, ghp

There is an feature of Adalogger's SD card reader that I had missed:

"SD Detect Jumper

On the back of the board, directly above GP15 and to the left of the cowbell logo on the silk, is the SD Detect jumper. The jumper is labeled SD Det on the silk.
You can solder this jumper closed to connect the optional SD card detect line to GP15"
https://learn.adafruit.com/adafruit-pic ... er-3139523

Is the SD card detect line the same as the CS line for SPI?

As should be obvious from the name, no it isn't.

The SD card detect is a signal from the SD card socket (usually a simple physical switch) to indicate to the master whether a card is in the slot or not.

The SPI CS (full name Chip Select) line is an output from the master device to indicate which slave device it wants to talk to. You need one CS line for each slave device connected to a particular SPI bus and you need to make sure your software knows which CS to use for which device.

The other three SPI lines (SCLK, MOSI, and MISO) can be shared by multiple devices potentially as many devices as you have available CS lines.

You need to modify one of those boards to use a different GPIO at the Pico end for CS and the software/driver for it to use that same pin.

You may want to look at https://en.wikipedia.org/wiki/Serial_Pe ... _Interface

Statistics: Posted by thagrol — Sun Dec 08, 2024 5:08 pm



Viewing all articles
Browse latest Browse all 5349

Trending Articles