Shop OBEX P1 Docs P2 Docs Learn Events
DS1302 and MAX7219 — Parallax Forums

DS1302 and MAX7219

Mikael SMikael S Posts: 60
edited 2007-11-21 22:13 in BASIC Stamp
I´m trying to get the time from a Dallas DS1302 and display it on a large 7-segment LED display with help of a MAX7219.
I have tried for a couple of nights now, and can´t get it to work. Is there anyone who have a simple example code for this.

Would be very glad for any help!

/Mikael

Comments

  • RDL2004RDL2004 Posts: 2,554
    edited 2007-11-20 15:45
    If you're using a Basic Stamp, here is a project done by Chris Savage that will help:

    http://forums.parallax.com/showthread.php?p=552892

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Rick
  • Mikael SMikael S Posts: 60
    edited 2007-11-20 21:23
    Thanks, now my time/temp project is runnig!

    My problem now is that i need to write the little ring after the temperature, have anyone a tip??
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-11-20 22:02
    If you’re just using the MAX7219 and 7-Segment Displays then to do a degree symbol you need to take the display out of Decode Mode after your digits are up, and then light the digits required to make a degree symbol (A, B, G, F). Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Mikael SMikael S Posts: 60
    edited 2007-11-21 06:41
    What format should i use to send only A, B, G, F? Can't figure this out.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-11-21 22:13
    Mikael,

    Do you have the datasheet? All the information I got is from it. At initialization the decode mode is set, however you can change it on the fly. The diagram shows which bits represent which segments on the display. It might help to just create a constant for degrees and display that value when you switch out of decode mode.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.