??? 03/18/09 12:43 Read: times |
#163573 - A bit of summing up for you to do Responding to: ???'s previous message |
Wouldn't you learn more if you experiment yourself?
Your display have seven segments for the digit and one for the dot. So each segment represents one bit. Now decide what bits to light to show a specific digit/character. If your display will light a segment if you send out high on the processor pin, then add the bit values together. If you have connected your display so it will light segments when the processor pin is low, then you should send out 255 - (sum of bit values for lit segments), or you may instead decide to sum the bit values for the non-lit segments. Only you can do this, because only you know which of the segments that is connected to which pin on the processor port. If the segment A is connected to bit 0 on the port, then it has the value 1 (2^0). If the segment B is connected to bit 1 on the port, then it has the value 2 (2^1). If the segment C is connected to bit 2 on the port, then it has the value 4 (2^2). If the segment D is connected to bit 3 on the port, then it has the value 8 (2^3). ... If the DP is connected to bit 7 on the port, then it has the value 128 (2^7). If you want to show the digit '1' you must light the segments B and C and possibly the decimal point DP. If your display is lit by high outputs, then the value to use to light a '1' will then be (2+4)=6. Or with a DP also lit (2+4+128) = 134. If you display is lit by low outputs, then you should send out (255-6) or to also light the DP (255-134). Note that the above figures must be adjusted to the bit order you have assigned to the different segments of the display. |
Topic | Author | Date |
"FND Display " | 01/01/70 00:00 | |
formatted code | 01/01/70 00:00 | |
What is FND display? | 01/01/70 00:00 | |
FND picture | 01/01/70 00:00 | |
where did you get that name from? | 01/01/70 00:00 | |
It's a Fairchild prefix | 01/01/70 00:00 | |
Thanks...![]() | 01/01/70 00:00 | |
7-Segment Lookup Table - Example | 01/01/70 00:00 | |
pattern not ASCII | 01/01/70 00:00 | |
Plz ... | 01/01/70 00:00 | |
A bit of summing up for you to do | 01/01/70 00:00 | |
Also check for CA/CC | 01/01/70 00:00 | |
source/sink | 01/01/70 00:00 | |
Clarification: Segments and Bits | 01/01/70 00:00 | |
Vijay, | 01/01/70 00:00 | |
If you want characters, then use characters! | 01/01/70 00:00 | |
Hardware? | 01/01/70 00:00 |