RTC (Real Time Clock) DS1307 e DS1302 - Laboratorio de Garagem (arduino, eletrônica, robotica, hacking)2024-03-28T15:53:22Zhttps://labdegaragem.com/forum/topics/rtc-real-time-clock-ds1307-e-ds1302?feed=yes&xn_auth=noGente, não tem como trocar um…tag:labdegaragem.com,2016-03-22:6223006:Comment:5208202016-03-22T10:10:43.887ZThiago José de Toledo Limahttps://labdegaragem.com/profile/ThiagoJosedeToledoLima
<p>Gente, não tem como trocar um pelo outro de uma maneira "fácil", já comprei o DS1307 e funcionou corretamente... Agradeço ao empenho dos colegas... Grato!!!</p>
<p>Gente, não tem como trocar um pelo outro de uma maneira "fácil", já comprei o DS1307 e funcionou corretamente... Agradeço ao empenho dos colegas... Grato!!!</p> Penso que o DS1302 deva usar…tag:labdegaragem.com,2016-03-20:6223006:Comment:5203652016-03-20T22:14:47.305ZJosé Gustavo Abreu Murtahttps://labdegaragem.com/profile/GustavoMurta
<p>Penso que o DS1302 deva usar essa interface antecessora I2S. (ela é mais antiga). </p>
<p>Ou algo similar .</p>
<p></p>
<p><a href="https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf" target="_blank">https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf</a></p>
<p></p>
<p>Penso que o DS1302 deva usar essa interface antecessora I2S. (ela é mais antiga). </p>
<p>Ou algo similar .</p>
<p></p>
<p><a href="https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf" target="_blank">https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf</a></p>
<p></p> Oi TJAC, boa noite,
o JAC est…tag:labdegaragem.com,2016-03-20:6223006:Comment:5202752016-03-20T21:52:14.182Zmineirin RVhttps://labdegaragem.com/profile/RuiViana
<p>Oi TJAC, boa noite,</p>
<p>o JAC está correto.</p>
<p></p>
<p>Aqui neste link do siote oficial do arduino, você encontrará diversa informações sobre este módulo:</p>
<p><a href="http://playground.arduino.cc/Main/DS1302" target="_blank">http://playground.arduino.cc/Main/DS1302</a></p>
<p></p>
<p>Interfacing the DS1302<br></br>The DS1302 uses three lines (CE, I/O, SCLK). It is not I2C, it's not OneWire, and it is not SPI.</p>
<p>The most used name is "3-wire interface".</p>
<p></p>
<p>Tem também…</p>
<p>Oi TJAC, boa noite,</p>
<p>o JAC está correto.</p>
<p></p>
<p>Aqui neste link do siote oficial do arduino, você encontrará diversa informações sobre este módulo:</p>
<p><a href="http://playground.arduino.cc/Main/DS1302" target="_blank">http://playground.arduino.cc/Main/DS1302</a></p>
<p></p>
<p>Interfacing the DS1302<br/>The DS1302 uses three lines (CE, I/O, SCLK). It is not I2C, it's not OneWire, and it is not SPI.</p>
<p>The most used name is "3-wire interface".</p>
<p></p>
<p>Tem também um exemplo que não utiliza nenhuma biblioteca.</p>
<p></p>
<p>Rui</p>
<p></p> Vou verificar isso, se der ce…tag:labdegaragem.com,2016-03-19:6223006:Comment:5202342016-03-19T23:36:18.287ZThiago José de Toledo Limahttps://labdegaragem.com/profile/ThiagoJosedeToledoLima
<p>Vou verificar isso, se der certo amanhã eu posto aqui... grato!</p>
<p>Vou verificar isso, se der certo amanhã eu posto aqui... grato!</p> Thiago, no mesmo artigo cita…tag:labdegaragem.com,2016-03-19:6223006:Comment:5202322016-03-19T23:33:28.443ZJose Augusto Cintrahttps://labdegaragem.com/profile/JoseAugustoCintra
<p>Thiago, no mesmo artigo cita que o DS1302 não é SPI:</p>
<p><em><strong>"The <span class="wikiword">DS1302</span> uses a 3-wire interface:</strong></em></p>
<div class="indent"><em><strong>* bidirectional data.</strong></em></div>
<div class="indent"><em><strong>* clock</strong></em></div>
<div class="indent"><em><strong>* chip select</strong></em></div>
<p><br></br><em><strong>It is not <span class="wikiword">I2C</span>, not <span class="wikiword">OneWire</span>, and not SPI. So the standard…</strong></em></p>
<p>Thiago, no mesmo artigo cita que o DS1302 não é SPI:</p>
<p><em><strong>"The <span class="wikiword">DS1302</span> uses a 3-wire interface:</strong></em></p>
<div class="indent"><em><strong>* bidirectional data.</strong></em></div>
<div class="indent"><em><strong>* clock</strong></em></div>
<div class="indent"><em><strong>* chip select</strong></em></div>
<p><br/><em><strong>It is not <span class="wikiword">I2C</span>, not <span class="wikiword">OneWire</span>, and not SPI. So the standard libraries can not be used."</strong></em></p>
<p></p>
<p>Não seria o caso de checar suas ligações?</p>
<p></p> José Augusto, agradeço a dica…tag:labdegaragem.com,2016-03-19:6223006:Comment:5202262016-03-19T23:15:53.029ZThiago José de Toledo Limahttps://labdegaragem.com/profile/ThiagoJosedeToledoLima
<p>José Augusto, agradeço a dica, mas não da certo, o protocolo de comunicação do DS1307 é I2c de dois pinos, já o DS1302 é SPI de três pinos...</p>
<p>José Augusto, agradeço a dica, mas não da certo, o protocolo de comunicação do DS1307 é I2c de dois pinos, já o DS1302 é SPI de três pinos...</p> Thiago, pelo que sei, basta t…tag:labdegaragem.com,2016-03-19:6223006:Comment:5202222016-03-19T22:31:02.842ZJose Augusto Cintrahttps://labdegaragem.com/profile/JoseAugustoCintra
<p>Thiago, pelo que sei, basta trocar o #include para <span class="wikiword">DS1302RTC</span>.h ao invés de <span class="wikiword">DS1307RTC</span>.h</p>
<p>Para baixar a library do 1032: <a href="http://playground.arduino.cc/Main/DS1302RTC" target="_blank">http://playground.arduino.cc/Main/DS1302RTC</a></p>
<p>Veja o que diz nesse link:</p>
<p><strong><em>"The <span class="wikiword">DS1302RTC</span> library is a drop-in replacement for the <span class="wikiword">DS1307RTC</span>.h library by…</em></strong></p>
<p>Thiago, pelo que sei, basta trocar o #include para <span class="wikiword">DS1302RTC</span>.h ao invés de <span class="wikiword">DS1307RTC</span>.h</p>
<p>Para baixar a library do 1032: <a href="http://playground.arduino.cc/Main/DS1302RTC" target="_blank">http://playground.arduino.cc/Main/DS1302RTC</a></p>
<p>Veja o que diz nesse link:</p>
<p><strong><em>"The <span class="wikiword">DS1302RTC</span> library is a drop-in replacement for the <span class="wikiword">DS1307RTC</span>.h library by Michael Margolis that is supplied with the Arduino Time library above. To change from using a <span class="wikiword">DS1307</span> RTC to a <span class="wikiword">DS1302</span> RTC, it is only necessary to change the #include statement to include <span class="wikiword">DS1302RTC</span>.h instead of <span class="wikiword">DS1307RTC</span>.h.</em></strong></p>
<p><strong><em>This library also implements functions to support the additional features of the <span class="wikiword">DS1302</span>"</em></strong></p>