gpb01:
Scusa,
ma se tu carichi così come è l'esempio del playground (allegato a questo mio post) SENZA modificarlo (occhio quindi a quali pin usare) ... che risultato ti da ?
Guglielmo
EDIT : Hai letto anche che : "The three pins for the interface should avoid to use the internal pull-up resistors of the Arduino. The DS1302 has internal pull-down resistors, and the CE and SCLK lines should be low when inactive.
Some schematics on the internet have pull-up resistors on the three interface lines. That is wrong. Other schematics use two 22pF with the crystal. That is also wrong. See the datasheet for full specifications and a circuit."
ho caricato lo sketch che mi hai messo in allegato senza modifiche dato che i pin erano già corretti, questo è quello che mi mostra la seriale:
DS1302 Real Time Clock
Version 2, March 2013
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000
Time = 00:00:00, Date(day of month) = 0, Month = 0, Day(day of week) = 0, Year = 2000