Go Down

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

#### Techone

##### Jan 28, 2012, 10:03 pmLast 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  NumeralNumber 0 :  11111100     FC     252  <-- addNumber 1 :  01100000     60     96 Number 2 :  11011010     DA     218 <-- changeNumber 3 :  11110010     F2     242Number 4 :  01100110     66     102Number 5 :  10110110     B6     182Number 6 :  10111110     BE     190Number 7 :  11100000     E0     224Number 8 :  11111110     FE     254Number 9 :  11110110     F6     246Number A :  11101110     EE     238Number B :  00111110     3E     62Number C :  10011100     9C     156Number D :  01111010     7A     122Number E :  10011110     9E     158Number F :  10001110     8E     142To display the dot, simply add 1.example : 96 + 1 = 97  or b01100001 0x61For the above numbers, a 1 will turn On a segment : sourcingAs for sinking, a 0 will turn on a segment, just invert the number.example : Not b01100000 = b10011111 = 0x9F  159For the dot, just simply minus 1.example : 159 - 1 = 158 or b10011110 0x9E`

Go Up