does sd-card block spi bus when initialized ?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I've got a board here with an xMega128A1, which amongst several other things has a uSD card slot connected via SPI and on the same SPI with a different CS line of course there is an ADC connected which reads a temperature sensor. Here comes the problem: once I have initialized the usd-card, I'm not able to read values from the other SPI slave. Before that it works without problem. As it is currently not so easy to put on a test-tip to directly measure my question is as in the headline. If yes, is there any way to put it back to sleep ? I tried disabling the SPI interface, together with resetting all used port to input and also to output, but nothing worked. Any good ideas anyone ?
Thank you once again,
best regards

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Read "Cosideration on Multi-slave Configuration" on this page:

http://elm-chan.org/docs/mmc/mmc...

(it's probably unwise to use SD/MMC without reading and understanding most of what's given on that page - even if you aren't using FatFs).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thank you clawson that is probably the right hint. I previously read "most of it" since I'm not using SD/MMC for the first time, but for the first time with a shared SPI.