Space Harrier /OutRun DX Motor OpenBoard Project

NaokiS

Active member
Feedback
1 (100%)
Credits
116CR
John Bennett said:
Big thanks to Mark Haysman for dumping the file a few years back.
smiley32.gif


And also a thank you to my brother, who, in about 30 seconds from me asking him to help, returned the equations for it (MAME has JEDUTIL tool)

Inputs:

1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19

Outputs:

16 (Combinatorial, Output feedback output, Active high)
17 (Combinatorial, Output feedback output, Active low)
18 (Combinatorial, Output feedback output, Active low)
19 (Combinatorial, Output feedback output, Active high)

Equations:

o16 = i1 & i4 & i13 +
i4 & /i13 +
i1 & i2 & i3 & /i13
o16.oe = vcc

/o17 = i14 +
i15
o17.oe = vcc

/o18 = /i5 & /i6 & /i7 & /i8
o18.oe = vcc

o19 = /i1 & /i2 & /i3 & /i4 & i5 & /i6 & /i7 & /i8 & i9 & i11 +
i1 & /i2 & /i3 & /i4 & /i5 & i6 & /i7 & /i8 & i9 & i11 +
/i1 & i2 & /i3 & /i4 & i5 & i6 & /i7 & /i8 & i9 & i11 +
i1 & i2 & /i3 & /i4 & /i5 & /i6 & i7 & /i8 & i9 & i11 +
/i1 & /i2 & i3 & /i4 & i5 & /i6 & i7 & /i8 & i9 & i11 +
i1 & /i2 & i3 & /i4 & /i5 & i6 & i7 & /i8 & i9 & i11 +
/i1 & i2 & i3 & /i4 & i5 & i6 & i7 & /i8 & i9 & i11 +
/i1 & i2 & i3 & /i4 & i5 & /i6 & /i7 & i8 & /i9 & i12 +
i1 & /i2 & i3 & /i4 & /i5 & i6 & /i7 & i8 & /i9 & i12 +
/i1 & /i2 & i3 & /i4 & i5 & i6 & /i7 & i8 & /i9 & i12 +
i1 & i2 & /i3 & /i4 & /i5 & /i6 & i7 & i8 & /i9 & i12 +
/i1 & i2 & /i3 & /i4 & i5 & /i6 & i7 & i8 & /i9 & i12 +
i1 & /i2 & /i3 & /i4 & /i5 & i6 & i7 & i8 & /i9 & i12 +
/i1 & /i2 & /i3 & /i4 & i5 & i6 & i7 & i8 & /i9 & i12
o19.oe = vcc

I'll have a stare at it later - at least it's not empty
smiley36.gif

Er... Makes perfect sense to me
smiley36.gif
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
Fortunately it actually does make sense, after a bit of thought
smiley1.gif


The counter feeding the PAL it is reset by the PAL at 7 (depending on mains sync). So you get an 0-6 count for the positive half of the mains and then another 0-6 for the negative half (the PAL is fed the mains direction on pin 9.)

The speed control then determines how many counts of the half-cycle the triac is on for. It's not actually PWM (much simpler) - the triac gets a clocked-pulse when it needs to turn on and then it turns itself off inherently at the end of the mains half-cycle.

So if it receives 15, then it gives the triac a pulse at the start of the half-cycle and the motor gets volts for the full half cycle (and goes quickly).

If it receives an 8, then the triac is turned on at the end and the motor just gets volts briefly (and goes slow).
triac3.jpg


As the circuit senses the positive or negative mains cycle, when requesting negative speed, it does the same, but only when the mains is negative. This makes the motor go backwards.
triac2.jpg


Definitely a huge help to have the PAL rather than to hang scopes off the board -saved us a lot of time.
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
Wow, I wasn't even going to bother looking, I thought it was so bespoke.
Fantastic.

If we can't get the exact crystal, it's worth verifying that the RC circuit will work with our replacement. Just a parts list change though.

Oh and on the subject of unfortunate PCB labels, take a look at Double Dragon...
ddragona.JPG


(edited to make it slightly less blatant).John Bennett2018-05-22 12:56:40
 

tin

Active member
vacBacker
Feedback
3 (100%)
Credits
655CR
There was a hint on the outrun wiring schematics, it's labelled as AMP MIC 5P.

Love the "mistake" on that diagram!! :)

tin2018-05-22 13:09:52
 

tin

Active member
vacBacker
Feedback
3 (100%)
Credits
655CR
Is IC1 the correct part on the project? I have the out pin as pin 15 Q10, but there's not even a Q10 on the part that's currently in the project. A lot of the pin label names are subtly different too. Is this due to needing a substitute part or something else?

I'm a real noob to this so I could easily have it wrong.
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
I think it's just the borderline-unreadable original schematics.

I'm pretty sure it's Q9, just looks like a Q10 in the schematics for some reason. PCB traces show it's pin 15.

I think, even though a WIP, all the parts in our schematic should have the right pinouts and be the same as the original schematics (that's the intention anyway).

edit: Oh and the pin labels are often different - I just use what's in the library, rather than trying to match the names on the original schematic. There's no right and wrong really (even manufacturers use differing names), as long as the pin numbers the tracks go to are correct - that shouldn't ever change.John Bennett2018-05-22 14:36:13
 

tin

Active member
vacBacker
Feedback
3 (100%)
Credits
655CR
Pinout I have for the specific chip on the board I have here says Q10 on pin 15. Could very well be wrong just sounding caution as it sounds the clocking is crucial? :)

https://www.datasheets360.com/pdf/-3037750509667892223

HC4060.PNG


Agree with the wonderful schematic :) I cant figure the nomenclature on pins 10-12 but Q10 matches up and the pin numbering checks out on my board here.

<edit> actually looking again here's what I think I see in the schematic...

possible_IC1.PNG


tin2018-05-22 14:56:17
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
https://assets.nexperia.com/documents/data-sheet/74HC_HCT4060.pdf

Confusing.

I'd go with your older part datasheet as being correct, but why are they different?...

Guess we should look up some more 4060s, as it has to work with what's available now, but we'll need it to be Q10.

I've been wrong too many times on the frequency calculations now
smiley36.gif
Honing in on the right numbers though!John Bennett2018-05-22 15:15:25
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
It's possibly the 'P'.

Or maybe not. Maybe it's a lucky dip?

Still, at least we can get the Q10 version from Farnell
http://www.ti.com/lit/ds/symlink/cd74hc4060.pdf

Edit: Actually, I think it might just be notation - some devices have all the Q output pins numbered one higher than other devices.

So they may all function the same and be interchangeable (which feels more likely).
John Bennett2018-05-22 15:49:45
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
iamjimmi said:
I have been sent the dump of the 82s153 from Andreas.

Uploaded it to my dropbox:

https://www.dropbox.com/sh/yj24frv290u8fsy/AADZPajTBLZk7_VeGixG3KS7a?dl=0

Thanks. It's identical to the dump used the other day (a good thing!)

The 'A' looks functionally identical, but has a different code at the top and an extra line of zeros. I haven't got Mame handy to see if the utility gives a different output, but it looks like is might just be the same functions but for a slightly different device variant.
 

Nes4life

Active member
vacBacker
Feedback
11 (100%)
Credits
1,117CR
Keep going guys! Loving the effort put into this. You'll be making a lot of Sega owners happy; especially if this covers a few different machines. Well done for choosing to match the original design even if you can make a much smaller / cheaper modern replacement.

I really find this sort of recreation work fascinating; is the PCB design / layout software Mac compatible?

Does it allow you to 'run' the PCB in a simulator?
 

NaokiS

Active member
Feedback
1 (100%)
Credits
116CR
Nes4life said:
Keep going guys! Loving the effort put into this. You'll be making a lot of Sega owners happy; especially if this covers a few different machines. Well done for choosing to match the original design even if you can make a much smaller / cheaper modern replacement.?

I really find this sort of recreation work fascinating; is the PCB design / layout software Mac compatible?

Does it allow you to 'run' the PCB in a simulator?

Yes an no. Circuit Maker is free for windows and mac but no it doesnt simulate the design to my knowledge. In one aspect it can't anyway due to the GALs involved
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
Sorry, I don't think there's an Apple version, unless Apples run Windows and are just like PCs inside (I honestly lose track these days).

You can do simulation in Circuit Maker, but I don't think you'd put the entire board through it (huge amount of mixed-domain simulation effort).
However I definitely want to simulate the mains/triac part of circuit, so I'll give it a try in Circuit Maker and if not possible, I'll have a go in some free version of Spice. I think I know how it works, but there's subtleties in the operation triac and the photothyristor that I'd like to understand (as we'll be speccing alternative photothyristors, seeing as the originals are obsolete and may have no direct equivalent, that I can see).

I had thought about putting the logic circuit into Modelsim (as I can do that quickly, from mucking on with making FPGA designs from 74LS logic blocks), but I'll probably only do that if I can't get the first prototype to work on the bench, as it's overkill
smiley36.gif
John Bennett2018-05-23 09:32:44
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,003CR
Haha, I didn't mean to contradict on both counts.
Great if it does work on Macs.

There is simulation in there (well I think I've seen it, and there is in the full Altium), but it's basic, and as you say, the GALs wouldn't be there, so you'd have to find a way to implement them (and it's not probably worth it).
 

NaokiS

Active member
Feedback
1 (100%)
Credits
116CR
Whoops, best to fact check before posting! Thought it was on mac but the only way is using either virtualization or bootcamp. Not natively supported.

As for the simulation, i haven't seen anything but granted ive been focused on working out how lay traces out in Altium lol
 
Top