Other Parts Discussed in Thread: MSP430FR5969
Good afternoon,
I am working on a system based on MSP430FR5969 that has a microSD card and a ADXL362 accelerometer. I am using them on the same SPI bus. Separately they works: i can write on the SD-Card and i can sample data from the accelerometer, but I have some problems to use them together.
In particular I can't read the Accelerometer registers if the SD-card is plugged in the slot. At the beginning i thought it was a software problem of Chip-Select, but using them correctly is the problem remains. So i used the Oscilloscope for reading the waveform of the MISO, MOSI, and CLK.
This is the MOSI waveform when the SD-card is not in, (i am using a probe with 100x attenuation, so 33mV is 3.3V). In this case all is ok, the signal is good:
Then I Insert the SD-card; this is the result:
The waveform is at 1V and so the sensor can't read it. The CLK has the same problem of the MOSI. The MISO is stranger: when the SD card is not plugged in works properly. When the sd-card is plugged in the the CS low it stays on GND, when the CS is High the wave is similar to second picture, it can be good but the high level is too low.
I read 2 datasheet of the SDIO communication and they are in contrast saying the CS is active low or high. According to the SD library that I am using it is High, and it works, but this 2 PDF says 2 different things:
(www.sdcard.org/.../partE1_100.pdf) Page 18, Paragraph 7.1.1; in the important note it is written that the card is not selected with CS=1, so the CS is active low;
(www.sdcard.org/.../Simplified_SDIO_Card_Spec.pdf) Page 49 Paragraph 8.1.1; it is written that the card is not selected with CS=0, so the CS is active high;
I tryed both the configuration, CS active Low and High, but it does not work.
I don't know what the problem can be. Maybe do i need a pull-up? Do you have some other ideas?
Thanks in advance
Lorenzo