MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Naoki
Reged: 11/10/09
Posts: 1998
Loc: United Kingdom
Send PM
MAME's Output: 7-Seg to Dec/Bin?
11/12/13 12:50 AM


I'm having another go with the output system again but this time I'm trying to interface MAME's output (through MAME Hooker) to an Arduino using a RS232 link. Problem is I'm trying to get the 7-Segment displays from the NEO-GEO to function but am getting stumped on how to convert the values. As I noted last time the output system outputs what pins on the 7-seg display would be high so you could directly drive the display from that, however I cannot using an RS232 link but I don't know how to convert this value back to decimal or binary. For example I have the following list of the output numbers:

Code:

 1 = 6
2 = 91
3 = 15
4 = 102
5 = 109
6 = 124
7 = 7
8 = 127
9 = 111



To me there doesn't seem to be much of a pattern in order to make a single converstion.

Any ideas on if/how to convert them?


----
On a quest for Digital 573 and Dancing Stage EuroMix 2

By gods I've found it!







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 526 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2641