MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

TafoidAdministrator
I keep on testing.. testing.. testing... into the future!
Reged: 04/19/06
Posts: 3135
Loc: USA
Send PM
Re: MAME's Output: 7-Seg to Dec/Bin?
11/12/13 10:13 PM


> > As Matty hinted, each bit drives one of the segments. If you turn the numbers into
> > hex or binary and compare with a drawing of a 7-segment display that becomes much
> > more clear.
> >
> > If you want to identify the number, you pretty much have to just compare against an
> > array of the possible values for the 10 possible digits that can be displayed.
>
> I know that the bits are the actual segments, I just wondered if there was an easier
> way of converting the bits back into a decimal number, but like you both say a lookup
> table would pretty much be the only way.
>
> Thanks

1) Use your calculator in Windows, Programmer Mode (alt-3).
2) Assure you have "Dec" radio button selected.
3) Type in your integer for the appropriate number on LCD
4) Select "Bin" radio button, you'll get 0 and 1 output.
5) Match that output to the segments
6) Repeat at 2 until done

It's best to start with numbers which have less segments used (start with 1 (2 segs), 7 (3 segs). The rest is a process of elimination.

This picture might help too







Entire thread
Subject Posted by Posted on
* MAME's Output: 7-Seg to Dec/Bin? Naoki 11/12/13 12:50 AM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/15/13 08:16 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? ASI  11/12/13 11:26 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/13/13 01:55 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? R. Belmont  11/13/13 06:16 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/14/13 02:18 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? R. Belmont  11/14/13 07:39 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Vas Crabb  11/14/13 10:22 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? R. Belmont  11/15/13 05:52 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/15/13 07:58 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/14/13 11:17 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? italieAdministrator  11/15/13 04:51 AM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/15/13 03:27 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? italieAdministrator  11/13/13 03:20 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/14/13 02:16 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? R. Belmont  11/12/13 08:52 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/12/13 09:19 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? TafoidAdministrator  11/12/13 10:13 PM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Matty_  11/12/13 01:23 AM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Naoki  11/12/13 01:48 AM
. * Re: MAME's Output: 7-Seg to Dec/Bin? Matty_  11/12/13 04:06 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 348 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2628