27C400/27C800 EPROM emulator

Any 8bit repairs, images, cool things, upgrades etc.
cmorley
Posts: 291
Joined: Tue May 28, 2019 5:46 pm

Re: 27C400/27C800 EPROM emulator

Post by cmorley »

The module might be in "no wire rom switch" mode and when the USB powers it and the H4 is off it sees that as a long reset press (>3s) - which always goes to ROM 0.

In the options menu check...
a) reset wire free ROM switch is N (disabled)
b) ROM switch pull up is Y (enabled)

Then C to commit these options to the STM FLASH.

With nothing connected to the ROM switch pad then it should never ROM switch unless commanded to from USB with W.

If that's not it, is A17 not connected/open circuit on the socket? If that is pulled low (for compatability with a 27C400 say) then all odd banks (A17 high) will be inaccessible as the STM output pin will be shorted low...
terriblefire
Moderator Team
Moderator Team
Posts: 5368
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: 27C400/27C800 EPROM emulator

Post by terriblefire »

Ah it’s v possible that A17 is not floating. Will try slot 2
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
PaulJ
Posts: 1568
Joined: Sun Apr 08, 2018 1:14 am
Location: USA

Re: 27C400/27C800 EPROM emulator

Post by PaulJ »

terriblefire wrote: Wed Jun 03, 2020 10:44 pm Ah it’s v possible that A17 is not floating. Will try slot 2
Here's a schematic that always starts where you set it and all 8 slots work including diagram. @rubber_jonnie here's the schematic for the adaptor.
sch.jpg
sch.jpg (230.37 KiB) Viewed 7262 times
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10472
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: 27C400/27C800 EPROM emulator

Post by rubber_jonnie »

@PaulJ Brilliant, thanks!
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
terriblefire
Moderator Team
Moderator Team
Posts: 5368
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: 27C400/27C800 EPROM emulator

Post by terriblefire »

I think my impression was that A17-A19 are "broken" through the cpld when in 27C200 mode. But i guess thats not the case.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
cmorley
Posts: 291
Joined: Tue May 28, 2019 5:46 pm

Re: 27C400/27C800 EPROM emulator

Post by cmorley »

terriblefire wrote: Thu Jun 04, 2020 12:04 pm I think my impression was that A17-A19 are "broken" through the cpld when in 27C200 mode. But i guess thats not the case.
No I don't have enough pins to do that. The STM 32, pads (A18, A19) and pin 1/A17 pad (A17) are wire ORed on the 5v side of the buffers.

I thought about putting solder jumpers but thought that would cause more confusion than problem it would solve.

A17 does route through the CPLD (none of the others do), for the non-JEDEC rev 3 & 5 Amiga pinout compatability, so I might be able to fix it in firmware... I only have 1 macrocell free so it might not be possible. I have no option bits left in the STM32 option FLASH either so I'd need to repurpose the security byte to steal some more bits to store any more config options. It might be a bridge too far.

edit: the other reason for not breaking the pads->FLASH is so users can use their own control signals in systems to select ROMs. e.g. simulate 2 ROMs in different memory areas with one device with some external decode but make them still switchable.
terriblefire
Moderator Team
Moderator Team
Posts: 5368
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: 27C400/27C800 EPROM emulator

Post by terriblefire »

Yeah understood.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
cmorley
Posts: 291
Joined: Tue May 28, 2019 5:46 pm

Re: 27C400/27C800 EPROM emulator

Post by cmorley »

Right so I've hit a brick wall with these things. The problem is that with headers you can't stop a user connecting the USB at the header end (rather than the USB plug) if they are using a non-earth referenced computer and the module is installed in an earth referenced device (e.g. retro computer).

The issue is that "ground" can easily float to 90v on an laptop type PSU... without guaranteeing that GND is connected first you could blow up the module's USB or indeed the laptop's USB I think. A charged up Y-class cap is a decent chunk of energy.

There is little space to put a micro B socket on the module. Even if I could which way do you point it so you could plug something in? What works on one machine won't work on everything. I can't go up because there isn't the height on all computers. Putting in the instructions "connect the module then plug into the PC" won't stop people doing it the other order. I don't think USB is robust to connecting data first which is why the connectors have longer pins on the power to prevent that ever happening.

Pre-soldering wires is a non-started due to assembly practicality. Mezzanine boards won't fit every target.

I don't see how to solve this and make the USB connection foolproof.
User avatar
exxos
Site Admin
Site Admin
Posts: 23496
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: 27C400/27C800 EPROM emulator

Post by exxos »

The only way around the earth issue I think would be to use a opto isolator.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
cmorley
Posts: 291
Joined: Tue May 28, 2019 5:46 pm

Re: 27C400/27C800 EPROM emulator

Post by cmorley »

I am so cramped for space on this thing there is no chance to fit on any isolation... I don't think it would entirely mitigate the risk to the PC of hot plugging the 0.1" headers. The solution is to use a connector designed for hot plugging - but I don't see how to physically fit one!

I could shuffle things enough to put a USB micro B recepticle at the notch end of the EPROM emu... but the problem with that is that the plug will likely clash with other bits of computer in many installations. Maybe prefitting a USB breakout board would be the least worst option (see photo). Height is an issue in machines like the A600/A1200 (clearance to the keyboard) but I might be able to source shorter turned pin headers.
104419208_1196256500711103_6014199549391038693_n.jpg
104419208_1196256500711103_6014199549391038693_n.jpg (150.88 KiB) Viewed 7112 times
Post Reply

Return to “8 BIT CORNER”