Jump to content
ELFORUM - Forumul electronistilor

Adresare DS1307


Recommended Posts

Va salut !


Vreau sa folosesc un DS 1307 pentru a scrie intr-o memorie I2C datele respective (anul ,luna, ziua, ore, minute si secunde , si apoi sa le " pun " pe un display . Am luat datasheet-ul de la DS1307 si am mai gasit si niste aplicatii gata facute care mi s-ar potrivi , dar ....

Din datasheet ar rezulta ca foloseste SPI , iar intr-un exemplu am vazut sa foloseste un BUS I2C .



I2CWrite SDApin,SCLpin,$D0,$00,[RTCSec,RTCMin,RTCHour,RTCWDay,RTCDay,RTCMonth,RTCYear,RTCCtrl]


Rugamintea mea este , sa-mi puneti de fapt cum accesez / adresez un astfel de device , mai ales cand am mai multe pe acelas BUS ? I-l pot folosi impreuna cu o memorie 24Cxxx pe I2C ? Memoria o "lucrez " din pini , un OneWire cu codul unic , dar pe DS1307 , cum ??


Va multumesc !

Link to comment
Share on other sites

.....................da ,deci este un device pe bus I2C, ......

Dar cum il accesez ? Are un cod unic ca OneWire senzor ? Daca da , atunci cum il stiu / citesc ?


Multumesc !


M-am lamurit ! Are un cod unic pentru toate RTC-urile , acelas model DS1307 ,


"The slave address byte contains the 7-bit DS1307 address, which is 1101000 "


pentru ca " de obicei " nu e necesar sa folosesti mai mult de un RTC in aceesi schema .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines