Shop OBEX P1 Docs P2 Docs Learn Events
RTC with SX28 — Parallax Forums

RTC with SX28

pusinkpusink Posts: 68
edited 2007-04-01 23:50 in General Discussion
I'm using sx28, I want make RTC circuit using DS1994 for my project and display the time or date to 7-segment. Can you'll give me the schematic diagram and source code.

Comments

  • JonnyMacJonnyMac Posts: 8,943
    edited 2007-03-04 07:05
    There is actually a clock/timer project in the online [noparse][[/noparse]SX/B] help file; it uses an interrupt to keep track of the time and multiplex the LED display. You could add a couple more buttons for setting the time and have a single-chip solution.
  • John CoutureJohn Couture Posts: 370
    edited 2007-03-04 23:48
    You might want to also consider using an RTC chip and let the SX control the display. You'll probably get more accurate results.

    I use the PCF8583 (about $3 Jameco) and I notice that Futurlec has a nifty board with the chip, 32khz crystal and battery backup for about $7 (http://www.futurlec.com/Mini_PCF8583.shtml)

    The other nice thing about this chip is that it uses the I2C protocol which is easy to learn and built into the SX. You can also communicate with several slave devices (i.e. memory, etc) using only two wires for all devices.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John J. Couture

    San Diego Miramar College
  • RsadeikaRsadeika Posts: 3,824
    edited 2007-03-31 15:02
    John

    I just picked up some PCF8583 chips, would you have some example code, in SX/B, available?

    Ray
  • JDOhioJDOhio Posts: 72
    edited 2007-03-31 23:53
    This thread is also discussing RTC with a DS1302: http://forums.parallax.com/forums/default.aspx?f=7&m=159072

    Joe
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2007-04-01 23:50
    The DS1302 SX28 interface is actually finished. Look at the bottom of the thread for the code posting. Joe created this and I polished it up.
Sign In or Register to comment.