Go Down

Topic: FYI - 7 segment display table (Read 1 time) previous topic - next topic

Techone

Jan 28, 2012, 10:03 pm Last Edit: Jan 29, 2012, 01:09 am by Techone Reason: 1
Hi guys;

I just finish a table to help in design and coding a 7 segment display. To display a 1 for example, yon need the proper segments to be turn on and off. So I made a table. It show binary, hex and decimal format. I use 8 bit, the LSB is the dot and the MSB is the segment a.

Here the file. Just copy & paste. Tell me if any mistakes. I hope this info will be usefull for you guys.

edit : Ops...I forgot the enter zero.
edit again : The number 2 is wrong

Tested today with 74HC595. Work fine. The data is correct

Code: [Select]

Output of a 7 segment display

                abcdefg-dot  HEX  Numeral

Number 0 :  11111100     FC     252  <-- add
Number 1 :  01100000     60     96
Number 2 :  11011010     DA     218 <-- change
Number 3 :  11110010     F2     242
Number 4 :  01100110     66     102
Number 5 :  10110110     B6     182
Number 6 :  10111110     BE     190
Number 7 :  11100000     E0     224
Number 8 :  11111110     FE     254
Number 9 :  11110110     F6     246
Number A :  11101110     EE     238
Number B :  00111110     3E     62
Number C :  10011100     9C     156
Number D :  01111010     7A     122
Number E :  10011110     9E     158
Number F :  10001110     8E     142

To display the dot, simply add 1.

example : 96 + 1 = 97  or b01100001 0x61

For the above numbers, a 1 will turn On a segment : sourcing

As for sinking, a 0 will turn on a segment, just invert the number.

example : Not b01100000 = b10011111 = 0x9F  159

For the dot, just simply minus 1.

example : 159 - 1 = 158 or b10011110 0x9E

Go Up