Shop OBEX P1 Docs P2 Docs Learn Events
table of bitpattern for 16 segment-display — Parallax Forums

table of bitpattern for 16 segment-display

StefanL38StefanL38 Posts: 2,292
edited 2011-08-22 21:34 in Propeller 1
Hello,

I googled now for one hour for a table showing the mapping how the alphanumeric characterset 0-9, A-Z
is mapped into the bitpattern to turn on the right segments of 16-segment displays.
I mean a table

Row: alphanumeric character and in columms which of the segments A1, A2, B, C, D1, D2, E, F, G1, G2, H, I , J, K, L, M are switched on

  A1, A2, B_, C_, D1, D2, E_, F_, G1, G2, H_, I_, J_, K_, L_, M_
0: 1   1   1   1   1   1   1   1   0   0   0   0   1   0   0   1
1:...
2:...
...
A:...
Z:....




another five hours on searching will be the same as creating it myself

does somebody know a link to a website or datasheet for this ?
did somebody wrote some propellercode about this and would share this code?

best regards

Stefan

Comments

  • Ken PetersonKen Peterson Posts: 806
    edited 2008-10-12 21:01
    I assume you found this one, but just in case you didn't:

    http://www.maxim-ic.com/appnotes.cfm/an_pk/3212

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."

    - Bjarne Stroustrup
  • StefanL38StefanL38 Posts: 2,292
    edited 2008-10-12 22:24
    the AN3212 has again only tables for connecting them to a chip doing the mapping.

    this one has a high-resulution picture for the characters

    datasheets.maxim-ic.com/en/ds/MAX6955.pdf
    But it's a little bit difficult to recognize the characters in the table.

    In all these datasheets it is NOT nescessary to show a table of what I'm searching for
    as these details are done INSIDE the chip.

    I could use a chip as the Max6955. But I want to build up the logic myself with three 74HC595 shiftregisters

    best regards

    Stefan
  • Ken PetersonKen Peterson Posts: 806
    edited 2008-10-13 00:53
    Well, you can use the images as a font reference and generate your own table. I think it's possible to make such a table in less than an hour, let alone 5 hours. Do you need to represent each and every character, or are you satisfied with alphanumeric and common punctuation? Start with those and work on the rest as you need them.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."

    - Bjarne Stroustrup
  • TimmooreTimmoore Posts: 1,031
    edited 2008-10-13 21:33
    Heres one I use on the PPDB display. The segment table is not complete yet. I have been filling it in as I need. Numeric is done and some of the alpha but I dont remember how far I got before I had enough for the project - I think uppercase is done but not lowercase.
  • StefanL38StefanL38 Posts: 2,292
    edited 2008-10-14 00:18
    Hello Tim,

    thank you very much for sharing your code !

    Great piece of code and well documented

    As far as I have studied the code

    Init does the setup for the Pin-assignments meaning which IO-pins are connected to the different anodes of element A1, A2, B, ....
    which IO-Pins are connected to choose the digit 1-6 in the display
    and starts up the updateroutine in a new cog

    str sets new content to the buffervariable bytearray with 20 elements named "data"

    Update switches ON/OFF the IO-Pins for the characters in the buffer data by using the
    bitpattern stored in the datsection selsegments
    The lookup is done by using ASCII-code of character to display - ASCII-code of character "!"
    as index. Because the bitpatterns are stored in the order of the ASCII-Codes

    So in a mainfile first thing to do is call Init once
    and then use method str for displaying strings. Parameter of the method str is a stringpointer as usual in FullDuplexSerial etc.
    If they are longer than 6 characters the text is automatically scrolled thtough the display

    Thank you very much.

    best regards

    Stefan

    Post Edited (StefanL38) : 10/14/2008 12:24:27 AM GMT
  • tshibagttshibagt Posts: 1
    edited 2011-08-22 15:13
    can anybody help me with writing a code for a 16 segment to display 0-9 A-Z i tried two look up table but I'm still stack on how to display 16 bit on an 8bit port( I have 4 ports) I'm using 8051 microprocessor and assembly language. org.guy@gmail.com
  • StefanL38StefanL38 Posts: 2,292
    edited 2011-08-22 21:34
    to make a somehow propeller-chip relate answer out of this.

    if you have only 8 IO-ports left free. You have to do multiplexing not only from digit to digit but also inside one digit. or you have to use shiftregisters to expand the number of IO-pins.

    best regards

    Stefan
Sign In or Register to comment.