Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to display signed binary in 7seg

Status
Not open for further replies.
If only one digit is available, a non-standard way would be to use the decimal point as a sign indicator. Some have decimal points on the left. Lighting one on the left could indicate a -1. [1] [0] [.1] Just an idea. Perhaps prone to operator error. Using segments B,C,G would look odd but unambiguous.

A wilder idea using the segment position:
1 - Segment A (Horizontal top)
0 - Segment G (Horizontal middle)
-1 - Segment D (Horizontal bottom)

- - - Updated - - -

Do you want the logic for driving the segments or how to display the numbers? Before you can do the logic you need to decide how to display it.
 

how many 7segs have you got?
without only 1, you're not gonna get very far.

i got 3 !
but I forgot to mention that my binary is on 8-bit signed

- - - Updated - - -

If only one digit is available, a non-standard way would be to use the decimal point as a sign indicator. Some have decimal points on the left. Lighting one on the left could indicate a -1. [1] [0] [.1] Just an idea. Perhaps prone to operator error. Using segments B,C,G would look odd but unambiguous.

A wilder idea using the segment position:
1 - Segment A (Horizontal top)
0 - Segment G (Horizontal middle)
-1 - Segment D (Horizontal bottom)

- - - Updated - - -

Do you want the logic for driving the segments or how to display the numbers? Before you can do the logic you need to decide how to display it.


I gessed that it will be easy
Lighting points ! i like the idea !

- - - Updated - - -

Paint over a small portion of the 'g' segment, the portion closest to the '1'.

I will have to change my logic for that !
 

With 3 7segs you'll have to play around with encoding the 8-bits and sign into only 21 segments. The simplest approach to me is to lay the segments on their side.

_ _ _ _ _ _
|_|_| |_|_| |_|_|


As you can see there are 9 vertical segments. The segments are then read as ON-1 OFF-0 and the sign is the most significant segment and would read "-" when ON and "+" when OFF.

regards.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top