Shop OBEX P1 Docs P2 Docs Learn Events
Seven segment displays NOT ICM7219! — Parallax Forums

Seven segment displays NOT ICM7219!

SeipySeipy Posts: 6
edited 2004-10-25 15:11 in BASIC Stamp
jumpin.gif
I have a very large display consisting of 26 large 7 segment displays. Because of the need I am using a seperate BCD to seven segment drivers. I do not event want to hear about the ICM7219 UGH!

the stamp will recieve a string of 26 single digit numbers via rs232.·for example:12345678901234567890123456

I want to seperate each number into a nibble so I will end up with 26 nibbles of info.
So according the·the string example above the nibble would be populated with the following:
nibble 1 0001
nibble 2 0010
nibble·3 0011 and so on to
nibble 26 0110

I will have four outputs that feed the data to the BCD to seven segment displays.
I want·to·output nibble one (0001) on the outputs, wait, put nibble two on the outputs (0010) and so on. It will scroll through all 26 and then restart back to nibble 0 and go again.

how do I get the binary data in a nibble to turn on the outputs?
Thanks,
Dave Seip

Comments

  • SeipySeipy Posts: 6
    edited 2004-10-23 17:10
    I had built this scoreboard using a obsolete Programmable logic controller. I now want a stamp to run it. I plan on using the ICM7212 and not the 7219. Your help would be greatly appreciated as the PLC has died.
    Thanks,
    Dave Seip
    432 x 648 - 188K
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-25 15:11
    One of the problems you're going to face is variable space -- the BASIC Stamp only has 26 bytes for variables so you can't hold that all in a string. If you use a BS2p or BS2pe, you can buffer the string into the Scratcpad RAM.

    Conversion is easy: The ASCII code for "0" is 48, so you can subtract 48 from an ASCII digit to get its decimal value.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.