Search the Community
Showing results for tags 'ds3234'.
-
Hello, I am having trouble using a SPI DS3234 RTC with Energia and TivaC series launchpad. I am using the ds3234 library at https://github.com/rodan/ds3234 which is originally written for arduino. I modified few settings in the initialization, tried few things, but have not had any luck. The module will not talk spi at all, and I get 1900.00.00 00:00:00 for date all the time. Here is the relevant code from the init section: void DS3234_init(const uint8_t pin, const uint8_t ctrl_reg) { pinMode(pin, OUTPUT); SPI.setModule(2); SPI.begin(); SPI.setClockDivider(SP
-
G'day, Has anyone peek'ed an poked the SRAM on the DS3234 RTC My poke code is: . digitalWrite(P_RTC_CS, LOW); SPI.transfer(0x98); //SRAM address register SPI.transfer(0x01); //sram address I want to use SPI.transfer(timerValue); digitalWrite(P_RTC_CS, HIGH); Peek code is: digitalWrite(P_RTC_CS, LOW); SPI.transfer(0x98); //SRAM address register SPI.transfer(0x01); // digitalWrite(P_RTC_CS, HIGH); digitalWrite(P_RTC_CS, LOW); SPI.transfer(0x19); //read data pointed to by SRAM address register timerValue = SPI.transfer(0x00); d