Haunted Castle repair log #3

 PCB Repair Logs  Comments Off on Haunted Castle repair log #3
Jan 052016
 

Another Haunted Castle repair after the recent one from Corrado.

Board was in good shape :

Haunted_Castle_PCB

But it showed jailbars on sprites, besides the sound was missing :

sprite_issue

So I started to probe the two 4Mbit MASK ROMs containg sprites data and I found a bad signal on pin 28 of the one @J5 (good on the left, bad on the right) :

MASK_ROM@J5_data_line_comparison

I desoldered the MASK ROM and my programmer reported, indeed, troubles on pin 28 while I tried to read it :

768C04@J5_bad

Loading the dump in MAME I could reproduce exactly my issue :

issue_reproduced_MAME

With a programmed 27C400 as replacement of this MASK ROM the sprites were correclty restored so I went to troubleshoot the missing sound.With my analog scope I found weak signals on some data line of the 2018 SRAM @F2 (which the Z80 audio CPU accesses to) :

data_line_2018@F2_comparison

I promptly removed this SRAM which failed when tested in my programmer :

bad_MCM2018@F2

With a good RAM fitted the sound were restored but music was noisy and scratchy :

The FM sound generator is a Yamaha YM3812 @D5 which is connected to an external YM3014 DAC @C4.Probing its digital output  (PIN 21) revealed differences compared to the healthy signal from a good board pictured below :

good_serial_data_YM3812@D5

So, I removed the chip and installed a good one :

YM3812@D5_removed

This restored a clear sound.Job done, board 100% fixed!

 Posted by at 10:17 pm
Jan 032016
 

Contra / Gryzor shares almost the same hardware specs with Combat School / Boot Camp, Fast Lane, Flak Attack / MX5000, Haunted Castle / Akumajô Dracula and Trick Trap / Labyrinth Runner.

But among these titles, it is the only game that offers a stereo output thru a 4-pin connector on the board (labeled CN2).

First, you have to select stereo by plugging a connector on CN4 (and put switch 4 of DIPSW3 to off).

contra-sound

The thing is that all the boards I’ve seen still delivers mono sound when you plug this connector (originally brought by Konami and present on the board) on the stereo plug. Why ? Because it doesn’t have the good wiring…

As shown on the picture above, this connector originally comes with pin #1 wired to #2 and pin #3 wired to #4. In that way and plugged on the stereo connector (CN4), it mixes channel 1 and channel 2 from the YM3012 DAC to the LA4445 amp which results a mono output.

To separate the channels, you have to simply modify the connector by wiring pin #1 to #3 and pin #2 to #4.
Now plug it on CN4 and enjoy stereo sound out of CN2. 🙂

There are other Konami games that use the same connector to choose mono or stereo. I’m not sure about the wiring for every game. To my knowledge they are:

Salamander
– Jackal / Top Gunner
Devil World / Dark Adventure
– Gradius II / Vulcan Venture

– Ajax

Lightning Fighters / Trigon (stereo works without modification of the connector)
– Parodius
(stereo works without modification of the connector)
Surprise Attack (that game seems to have a mono sound design, despite the stereo connector present on the board)

ps. If anybody knows if the original wiring on these boards allows to deliver stereo sound or any other board that is using this connector, I would be glad to know and add it here.

Megablast PAL dumps tested

 PAL Updates  Comments Off on Megablast PAL dumps tested
Jan 032016
 

Today I could test the two PAL dumps we had on database from a Megablast PCB.They were submitted from an unknow source.I added proper chip labels and PCB location too.Actually the PCB has six PLDs but four of them are shared with Liquid Kids which have been already dumped previously by me.

 Posted by at 10:32 am

ABI ICT-24 Digital IC Tester tech info

 Technical Info  Comments Off on ABI ICT-24 Digital IC Tester tech info
Jan 012016
 

I recently found one of these devices and being a lover of test equipment I decided to see what it was all about.
IMAG1835

There is very little information about these online. The only official mention I can find about them is on ABI’s website and it just makes a passing reference to it stating it was the first IC tester device they made.
All other information comes from Equites who has had one of these for a number of years now. He has dumped the ROM’s from his unit and they are available in the downloads section.

So, I got my unit and powered it up to make sure it worked. Once I had confirmed that I opened it up.
IMAG1837

I could see straight away that I have a different firmware version, mine being 6-0-12 and the version Equites has was 5-9-12. I’m still not sure what the difference between the two is.
So I dumped these EPROM’s (available in the downloads section too) and created a schematic for the unit.
The device is a Z80 based system with a couple of EPROM’s, a RAM chip, a keyboard/display interface chip and three PPI chips to control IO reading/writing.

Once I had drawn it out I derived the following memory map
$0000-$3fff – ROM1
$4000-$7fff – ROM2
$8000-$87ff – RAM

8255 (IC1)
$c000 – PORTA
$c001 – PORTB
$c002 – PORTC
$c003 – Control

8255 (IC2)
$c004 – PORTA
$c005 – PORTB
$c006 – PORTC
$c007 – Control

8255 (IC3)
$c008 – PORTA
$c009 – PORTB
$c00a – PORTC
$c00b – Control

8279 (IC8)
$c00c – Data
$c00d – Control

IC1 – Controls the /OE lines to all the IO buffers
IC2 – Controls the inputs the the IO buffers
IC3 – Controls the reading from the ZIF sockets

The ROM’s, RAM, 8279 and 8522 chips enable lines are controlled via 74LS139 decoder chip.

The version number of the firmware can be displayed by keying in “005” on the keypad.
On my version it displays “6-0-12” which matches the labels on the EPROM’s.
Interestingly the “6-0” is stored as data in the ROM while the “-12” is hardcoded as instructions starting at $11cd.
The first 2 digits, in my case “6-0” represent the software version.
The remaining digits are the options installed. Mine as options 1 and 2 installed.
Option 1 is for memory devices
Option 2 is for interface devices

The unit does a power on self test which displays a fault code between 0 and 6. These may be explained in the manual which I don’t currently have so I took apart the disassembled code to see what they meant.

Fault 0:
One of the IO’s is tied to GND.
The software tristates all the IO pins via IC1 (8522) and reads them back via IC3 (8522). They are held at logic HIGH via a pull up resistor network. If any pins are low this will result in FAULT 0.

Fault 1:
One of the IO’s on PORTA is tied to VCC.
The software sets all of the IO pins on PORTA to logic LOW and reads the states back. If any pins are found to be logic HIGH on PORTA then this will result in FAULT 1.

Fault 2:
One of the IO’s on PORTB is tied to VCC.
The software sets all of the IO pins on PORTB to logic LOW and reads the states back. If any pins are found to be logic HIGH on PORTB then this will result in FAULT 2.

Fault 3:
One of the IO’s on PORTC is tied to VCC.
The software sets all of the IO pins on PORTC to logic LOW and reads the states back. If any pins are found to be logic HIGH on PORTC then this will result in FAULT 3.
NOTE: The 2 uppermost bits on PORTC are not used for reading back IO lines.

Fault 4:
Fault with the program RAM.

Fault 5:
Fault with display RAM.
RAM should be 0x0. If it is not then FAULT 5 with be displayed.

Fault 6:
Fault with display RAM.
RAM should be filled with alternating 0x55 0xAA. If these values are not correct then FAULT 6 is displayed.

Equites supplied me with some additional pictures and a manual for these units and apparently there is a rebranded RS version too.
That’s about it. I have commented a lot of the code and learnt a great deal about how it works.
Its a very robust unit and no doubt it will get some use despite having other methods available to test. Its much more appropriate to have in a garage workshop.

If anyone can offer any further information about this (or feels the need to emulate it) then please get in touch.
Thanks to Equites for his information and scans.

 Posted by at 1:14 pm

Super Space Invaders ’91 PAL dumps added

 PAL Updates  Comments Off on Super Space Invaders ’91 PAL dumps added
Jan 012016
 

I dumped the two PALs from a Taito Super Space Invaders ’91 PCB (single layer version).Both dumps are tested and working in a GAL16V8 targeting device.

 Posted by at 12:04 pm