kdecker:
I changed SS to pin 10 and changed the code accordingly as:const int cs=10; //chip select
.
.
.
int RTC_init(){
pinMode(cs,OUTPUT); // chip select
.
.
.
Same result. Still only returns zeros.
The pinMode should probably happen before the call to RTC_init as that then initilizes the SPI which looks at pinmode for pin 10 to decide to be master or slave.
Lefty