Author Topic: (solved)Adress decoding, combining more eproms in one, get rid of LS138  (Read 780 times)

0 Members and 2 Guests are viewing this topic.

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Hello,

any tips on how can I combine more eproms that are selected from an LS138 or LS139 adress decoder? I want make an single rom version for anarcade game. This way I can use a bigger eprom and use the upper adresses to select other games.
here is an schematic of the implementation of the eproms. I do have some WinCupl skills but I need some help here.

Thanks a lot.

« Last Edit: July 28, 2024, 09:36:58 pm by georgian »
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3891
  • Country: nl
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #1 on: July 28, 2024, 07:40:17 pm »
With a 27C512 you can replace 8 27C64 IC's by omitting the 74ls138 and connecting the address lines directly to the eeproms.

Also, 27 series Eprom is mostly obsolete. consider 28 series EEprom.
 

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #2 on: July 28, 2024, 07:43:35 pm »
Yes, but what about the OE and CS pins? I can tie the pin 22 (OE) on the 512 eprom LOW. I could then use the A13, A14 and A15 directly to the new 512 but what about the enable pins on the LS138? RFSH and IOREQ?
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3891
  • Country: nl
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #3 on: July 28, 2024, 08:09:37 pm »
It's been 30+ years since I last looked at the Z80 and those EPROMS. I believe some combine CE and OE pins depending on whether there is room for them on the package.

Back then I also bought "Z80 Applications" by James W Coffron ISBN 0-89588-094-6 And I still have it in dead tree format (It's been ages since I took THAT out of a drawer).

It's a very thorough book around designing circuits around a Z80. A quick check shows it's still available:

https://archive.org/details/z80_applications
 
The following users thanked this post: georgian

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #4 on: July 28, 2024, 08:19:35 pm »
This is how the eproms are on this particular PCB.
What I have tried:

I put the IC1 + IC2 + IC3 + empty 128k file in one 27C512
Connect the 27C512 CS low, A14 to Z80 A14 and A15 to Z80 A15. The game boots but dosen't get far, so it is not working this way.

I disconnected the CS pin from ground and conneted it to the Z80 pin 19 (MREQ), This way I got a streight IC3 error on boot so it obviusly dosen't work this way as well.

 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14842
  • Country: de
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #5 on: July 28, 2024, 08:37:58 pm »
From the memory size the 27512 could replace 8 x 2764, but the address space usually still has some RAM and not 8 x 2764.
The plan looks like 6 x EPROM and quite some extra decoding for the rest. This would suggest there could be enough time to keep the  xx138 and than just combine the 6 ROM select signals with an extra AND gate.
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3436
  • Country: us
Re: Address decoding, combining more eproms in one, get rid of LS138
« Reply #6 on: July 28, 2024, 08:43:11 pm »
Quote
Connect the 27C512 CS low, A14 to Z80 A14 and A15 to Z80 A15.

You were almost there.  Instead of tieing the 27C512 CS low, you need to combine the 6 existing 2764 chip selects into a new chip select signal.  You need a 6 input AND gate, which you could build out of a 74HCT11 or a 74HCT30 + 74HC04.

P.S. Instead of the 27C512, you might as well use an EEPROM like the W27C512 or SST27SF512.
« Last Edit: July 28, 2024, 08:46:00 pm by edavid »
 
The following users thanked this post: georgian

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Re: Address decoding, combining more eproms in one, get rid of LS138
« Reply #7 on: July 28, 2024, 08:55:13 pm »
Quote
Connect the 27C512 CS low, A14 to Z80 A14 and A15 to Z80 A15.

You were almost there.  Instead of tieing the 27C512 CS low, you need to combine the 6 existing 2764 chip selects into a new chip select signal.  You need a 6 input AND gate, which you could build out of a 74HCT11 or a 74HCT30 + 74HC04.

P.S. Instead of the 27C512, you might as well use an EEPROM like the W27C512 or SST27SF512.

Thanks, so I can't get rid of the address decoder IC. The plan is to use an 28F2000 flash and use the upper address lines to select diffrent games but first I need to figure it out how to make a sigle rom.
 

Offline Andy Chee

  • Super Contributor
  • ***
  • Posts: 1170
  • Country: au
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #8 on: July 28, 2024, 08:55:52 pm »
any tips on how can I combine more eproms that are selected from an LS138 or LS139 adress decoder? I want make an single rom version for anarcade game. This way I can use a bigger eprom and use the upper adresses to select other games.
here is an schematic of the implementation of the eproms. I do have some WinCupl skills but I need some help here.
Have you already probed with a logic analyser/oscilloscope, and confirmed that the upper addresses show zero activity?
 

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #9 on: July 28, 2024, 09:31:28 pm »
any tips on how can I combine more eproms that are selected from an LS138 or LS139 adress decoder? I want make an single rom version for anarcade game. This way I can use a bigger eprom and use the upper adresses to select other games.
here is an schematic of the implementation of the eproms. I do have some WinCupl skills but I need some help here.
Have you already probed with a logic analyser/oscilloscope, and confirmed that the upper addresses show zero activity?

With upper adresses I mean the extra addresse a much bigger eprom has. I fit all the roms in one 27C512. With one 27C1000, I have one extra address A16 that I can manually toggle to select between games. There are also graphics roms and sound but the problem was the program roms.
 

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Re: Address decoding, combining more eproms in one, get rid of LS138
« Reply #10 on: July 28, 2024, 09:36:04 pm »
You were almost there.  Instead of tieing the 27C512 CS low, you need to combine the 6 existing 2764 chip selects into a new chip select signal.  You need a 6 input AND gate, which you could build out of a 74HCT11 or a 74HCT30 + 74HC04.

P.S. Instead of the 27C512, you might as well use an EEPROM like the W27C512 or SST27SF512.

An 74LS11 did the trick! Many thanks.

 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3891
  • Country: nl
Also, why start from such an old scan of an even older schematic?
There must be hundreds of completed projects in various PCB design programs floating around out there. And a bunch of them will have some kind of retro computing community around them.
 

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
Also, why start from such an old scan of an even older schematic?
There must be hundreds of completed projects in various PCB design programs floating around out there. And a bunch of them will have some kind of retro computing community around them.
There are no schematics available for this particular Sega "system1" 171-5054-02  PCB. The old scan posted in my first post is from a different PCB revision. Schematics is almost the same but different layout.
The eagle incomplete schematic that I posted is what I found to be on the actual PCB.
http://techdocs.exodusemulator.com/Arcade/SegaSystem1/index.html
 

Offline georgianTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: at
I can now get rid of the 74LS139 that is on the PCB and the extra 74LS11 needed by using an ATF16V8.

Thanks a lot for all the answers.

WinCupl equations:
Code: [Select]
/* *************** INPUT PINS *********************/
PIN 2 = A14;
PIN 3 = A15;
PIN 4 = MREQ;

/* *************** OUTPUT PINS *********************/
PIN 14 = romCS;

!romCS = (!A14 & !A15 & !MREQ) # (!A14 & A15 & !MREQ) # (A14 & !A15 & !MREQ);
 

Offline bson

  • Supporter
  • ****
  • Posts: 2463
  • Country: us
Re: Adress decoding, combining more eproms in one, get rid of LS138
« Reply #14 on: July 29, 2024, 07:52:34 pm »
Yes, but what about the OE and CS pins? I can tie the pin 22 (OE) on the 512 eprom LOW. I could then use the A13, A14 and A15 directly to the new 512 but what about the enable pins on the LS138? RFSH and IOREQ?
Can't you just ignore RFSH altogether?  I don't see any DRAM on that schematic.

I agree with the idea of using a single 64k x 8 EPROM/EEPROM/NOR Flash (or the smallest still made if you go SMD) and then simply block it out with memory mapped devices.  In other words, if an address doesn't decode to something else, let it CS# the EPROM.

And, by convention, ADnn is used for a multiplexed address and data bus, while in your schematic it's used to designate a pure address bus.  This was rather confusing since the Z80 doesn't have a multiplexed bus.

It would be useful to see an address map...
« Last Edit: July 29, 2024, 07:59:32 pm by bson »
 

Offline Dan N

  • Contributor
  • Posts: 21
  • Country: us
I can now get rid of the 74LS139 that is on the PCB and the extra 74LS11 needed by using an ATF16V8.

You can also use a tiny AND-OR gate as shown in the attached pic.
 
The following users thanked this post: georgian


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf