Shop OBEX P1 Docs P2 Docs Learn Events
16segment data table. — Parallax Forums

16segment data table.

w4fejw4fej Posts: 264
edited 2010-12-27 08:31 in Propeller 1
Just got a Prop Pro develompent board for Xmas and am playing around with it. I am trying to get the sixteen segment displays to work. I found an object on OBEX called (you guessed it) sixteen-segment.spin. Simple mux display driver that works fine EXCEPT there are a LOT of errors in the data table resulting in bad characters.

I have been modifying the data table in a very tideous manner to get the correct segments going but I am facing retirement soon and would like to finish this before then. (lol)

Does anyone have a correct data table for the display on the PPDB? Please save my fingers and come to my rescue!!

Thanks, mike B.

Comments

  • TtailspinTtailspin Posts: 1,326
    edited 2010-12-26 09:33
    Not sure if You know this, but
    Look close, on the prop pro board the segments are not in order..

    Not trying to insult You, But if this was not allready noted, You will get alien script..
  • w4fejw4fej Posts: 264
    edited 2010-12-26 09:40
    Ttailspin wrote: »
    Not sure if You know this, but
    Look close, on the prop pro board the segments are not in order..

    Not trying to insult You, But if this was not allready noted, You will get alien script..
    No insult taken. The segments are wired correctly. The problem is there are errors in the object data table. I have corrected several and am still working on them. I ran Chris's test demo and it workes fine. Perhaps the author of the object had a diffferent type of display with different segments labels?? Dunno, alll I know is I have been fixing them as I find them.

    I can't think of any math relationship between ASCII and the segments to make this easier, so with the PPDB schematic for the displays on one computer I am fixing the bit patterns as I go. Looks great when the correct segments are lit..

    Thanks, Mike B.
  • TtailspinTtailspin Posts: 1,326
    edited 2010-12-26 09:54
    No insult taken. The segments are wired correctly.
    Oh good, just asking, cuz the first thing I did was make a wiring harness for the sixteen segments...
    Then promptly cut and respliced the harness into the correct order...sigh...
  • w4fejw4fej Posts: 264
    edited 2010-12-26 09:58
    Just discovered the "problem", he does have a different display segmant list from the PPDB. That explains why some characters are ok because they arent using any of the "wrong" segmanets (ie: 0)

    Here's his: m l k j i h g2 g1 f e d2 d1 c b a2 a1

    Yikes. Looks like I will have to edit all 128 bit patterns... Bummer...

    Mike B.
  • TtailspinTtailspin Posts: 1,326
    edited 2010-12-26 10:04
    All part of the fun.. I guess.
  • MagIO2MagIO2 Posts: 2,243
    edited 2010-12-26 10:12
    Why do you have to edit the codes? Are the connections between propeller and segments soldered?? I thought you have to use wires to attach the propeller pins to the display. So, you simply have to follow the wiring scheme used in the driver and the display will be fine with the existing code.
  • w4fejw4fej Posts: 264
    edited 2010-12-26 10:33
    Well I made an assumption. I assumed the PPDB displays were wired in order of the way they are used in software. I'm about to rewire the PPDB to the way the object appears to use the display. WHat confused me was Chris Savage posted a simple display test using the PPDB and it works fine. However he only displays the numbers 0..9 and it works fine.

    If the way folks write the software is different than the way the PPDB is wired makes me wonder why Parallax did that?? In my search for some info on this I thought I read where Chris said all the pins needed to be in order, ie: A1 to P0, A2 to P1 etc. Guess I assumed wrong.

    I'm going togo and start over and hook the segments up that way they appear to be in the object.. I'll report back..

    Mike B.
  • MagIO2MagIO2 Posts: 2,243
    edited 2010-12-26 10:44
    I don't know the driver, but if it's coded good, it should use constants having the same name as the segments and the constants should have the pin-number to which the segment is attached. So, maybe another solution could be to redefine the conastants according to your setup.
  • w4fejw4fej Posts: 264
    edited 2010-12-26 11:00
    Problem solved! rewired it out of sequence (compared to the PPDB that is) and it's working fine.. Sorry, that darned word "assumption" again!!

    I love my PPDB!!

    Mike B.
  • w4fejw4fej Posts: 264
    edited 2010-12-27 06:41
    Ttailspin wrote: »
    Not sure if You know this, but
    Look close, on the prop pro board the segments are not in order..

    Not trying to insult You, But if this was not allready noted, You will get alien script..
    @tailspin: After re-reading your reply I now see what you meant by "not in order". I made the rash assumption that Parallax wired the PPDB LED segments in the order they are normally used. My bad and you were actually correct in your diagnoisis. I just couldn't see the forest through the trees!! lol. Went and did some searching for more 16 segment objects and found another and when that gent had the segment order the same as the one I was working with the light bulb finally went on. I rearanged the segment wires and problem solved.

    Bottom line is you nailed it right off. Thanks

    Mike B.
  • TtailspinTtailspin Posts: 1,326
    edited 2010-12-27 08:31
    Glad to help,:smile:
    This stuff is so easy, it's hard.

    I Have to admit, "Segment's not in order" does sound somewhat cryptic...

    I have found developing a communitive standard with a keyboard is difficult and awkward at best...
    Especially when Your day to day Hand Tool's are primitive in nature.(My Hammer is My Keyboard)
    Often what I type lack's the necessary Tonal Deflection's to "sound" as friendly as intended,
    And that leaves Me wide open to broad interpretations..(not good).

    If it can go wrong it will...without mercy.. and Karma is Your only defense...

    Let us all endevour to mantain a behavior that is both model and beyond reproach..at all times.
    (Hey where is the emoticon with the Halo??? im gonna need one.) :cool:
Sign In or Register to comment.