Hi,
Following SPI related problem ..... My project must facilitate the following,
a data logger of a Thermocouple max32588 with a display and a micro SD card and a DS3234 rtc.
I experienced the follow. apart from each other the rtc and SD are working.
As soon as I connect the both items to the Arduino NANO and/or UNO makes no difference the clock is not working.
How I connect the RTC and SD
MOSI D11
MISO D12
CLK D13
CC (RTC) D9
CC (SD) D10
Is this a known problem? yes is there a link to the solution?
No what can cause the problem?
Is is advicable to control both items with SPI control like this for example?
pinMode(cs,OUTPUT); // chip select
// start the SPI library:
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE1); // both mode 1 & 3 should work
//set control register
digitalWrite(cs, LOW);
SPI.transfer(0x8E);
SPI.transfer(0x60); //60= disable Osciallator and Battery SQ wave @1hz, temp compensation, Alarms disabled
digitalWrite(cs, HIGH);
Any help is very apreciated,
Kind regards,
ilioSS