Acorn Electron cartridge breakout (prototyping cartridge)

discuss both original and modern hardware for the bbc micro/electron
Post Reply
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

In this previous thread, I mentioned that I was making a prototyping cartridge. Since then, I got the boards back from OSHPark and have tested one of them. Here is what the board looks like, mounted in the rear section of a 3D-printed cartridge case, albeit the one I got made that didn't have enough internal space but works perfectly for this application:
Prototyping cartridge in the rear section of a cartridge case
Prototyping cartridge in the rear section of a cartridge case
I've now soldered in some female 0.1 inch headers with short pins, and have been experimenting with the cartridge. As far as I can tell, everything is correct electrically. The board requires some force to get it into the cartridge socket, and here the case actually helps quite a lot. I imagine that had the connector been "v-scored" and maybe just slightly thinner, it would be easier to use.

Initial experiments with the cartridge have been somewhat successful, although my attempt to interface to some flash memory directly (instead of breaking out connections from DaveH's Dual ROM Adaptor cartridge) have been unreliable. I'm a bit uncertain about the interfacing required, and I don't know whether I'm using the right 7400-series technology (HC versus LS) for timing-critical signals (specifically nOE/nROMOE and RnW for things like chip select and output enable). But that could be discussed in another thread, I suppose. I did get a basic flip-flop circuit working where &FC73 can be used to write to a 74HC273, however.

The board itself can be ordered directly from OSHPark or you can get the source files from a repository.
User avatar
jms2
Posts: 3538
Joined: Mon Jan 08, 2007 6:38 am
Location: Derby, UK
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by jms2 »

=D>
Wonderful! This is a brilliant piece of work. And it will work with Masters as well.

When I started experimenting with interfacing to my Elk, I found the need to provide an edge connector was the biggest stumbling block. Breadboard would have been great, but I still would have needed to have an edge connector to get into the Plus 1. So in the end I sourced an obscure prototyping board from Ebay which had an integral edge connector, and soldered everything.

This is much better!
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

Looking good, Paul . . .

I've been toying with a different approach: designing a cartridge extender, handy for troubleshooting during design, with all the signals being accessible on the extender . . . Of course, it's on my to-do list :roll: :lol:

I'm also very close to getting my 3D printer finished and working on those cartridge cases for the MGC . . . No.No! I am, really :oops:

Looking at your case: Is the PCB slightly too tall? I ask as the mounting holes don't look quite central - but I can't tell if there's a gap at the top and it's just a nice loose fit!

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

jms2 wrote:Wonderful! This is a brilliant piece of work. And it will work with Masters as well.
Thanks! I did actually connect the NC line to the appropriate pin, so I haven't sabotaged the cartridge for Master use. There were some remarks about board thickness and the Master, though, so the 1.6mm thickness may be something to change if that proves to be a problem.
jms2 wrote:So in the end I sourced an obscure prototyping board from Ebay which had an integral edge connector, and soldered everything.
There was that 8BitBaby board that davidb has, which needs adjustments to its edge connector, and ISA expansion prototyping boards might also work, but given that I was getting to grips with KiCad and had ordered some other boards, I thought it was time to just get something done that could be used in other projects and to finally nail down the design parameters.
daveejhitchins wrote:I've been toying with a different approach: designing a cartridge extender, handy for troubleshooting during design, with all the signals being accessible on the extender
What form would this have? A kind of cable that plugs into the socket?
daveejhitchins wrote:I'm also very close to getting my 3D printer finished and working on those cartridge cases for the MGC
Remember that the OpenSCAD file contains parameters to make it easier to print: through-holes, removing the indented rear section, and so on. Let me know if you need any help with that.
daveejhitchins wrote:Looking at your case: Is the PCB slightly too tall? I ask as the mounting holes don't look quite central - but I can't tell if there's a gap at the top and it's just a nice loose fit!
It's not a loose fit at all, but rather very snug indeed, and the lugs don't really need to be there at all to hold the board. I've noticed that the lugs might be slightly too high (or the holes slightly too low) before, but it doesn't seem to create problems: you can put the board in the front of the cartridge and then press the rear piece on top and that seems to work. The Mega Games Cartridge board seems to fit rather well in the corrected version of the cartridge (although it's a narrow board if I recall correctly) to the point where davidb needs to be quite forceful in opening the case.
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

paulb wrote:
daveejhitchins wrote:I've been toying with a different approach: designing a cartridge extender, handy for troubleshooting during design, with all the signals being accessible on the extender
What form would this have? A kind of cable that plugs into the socket?
I was thinking of just a PCB to lift the relevant cartridge out of the recess for better access. It would have an identical socket so that the DUT would just plug-in . Oh! and support blocks to hold it steady. I hadn't thought of fitting any kind of connectors, just pads, however, it would seem prudent, after looking at your board, to fit a row of pins so that the signals could be brought out.
paulb wrote:
daveejhitchins wrote:I'm also very close to getting my 3D printer finished and working on those cartridge cases for the MGC
Remember that the OpenSCAD file contains parameters to make it easier to print: through-holes, removing the indented rear section, and so on. Let me know if you need any help with that.
Yes, I'm certain I'll need assistance with this! I've still to complete my measurements of the original cartridge - as a triple check. Now that the workshop is up and running (although not fully complete - Goodness (!!!) it's taken far, far longer than anticipated . . .
paulb wrote:
daveejhitchins wrote:Looking at your case: Is the PCB slightly too tall? I ask as the mounting holes don't look quite central - but I can't tell if there's a gap at the top and it's just a nice loose fit!
It's not a loose fit at all, but rather very snug indeed, and the lugs don't really need to be there at all to hold the board. I've noticed that the lugs might be slightly too high (or the holes slightly too low) before, but it doesn't seem to create problems: you can put the board in the front of the cartridge and then press the rear piece on top and that seems to work. The Mega Games Cartridge board seems to fit rather well in the corrected version of the cartridge (although it's a narrow board if I recall correctly) to the point where davidb needs to be quite forceful in opening the case.
The PCB dimensions I use are all centered around the case drawing I have and from snippets I've found whilst rummaging through the various documents I recovered. Still needs a few 'slight' tweaks, though!

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

daveejhitchins wrote:I was thinking of just a PCB to lift the relevant cartridge out of the recess for better access. It would have an identical socket so that the DUT would just plug-in . Oh! and support blocks to hold it steady. I hadn't thought of fitting any kind of connectors, just pads, however, it would seem prudent, after looking at your board, to fit a row of pins so that the signals could be brought out.
So, a kind of debugging board: an Acorn Electron "cartridge bus pirate", as it were.
daveejhitchins wrote:Now that the workshop is up and running (although not fully complete - Goodness (!!!) it's taken far, far longer than anticipated . . .
I don't know what kind of print times your printer supports, but I hope it doesn't end up being days of continuous printing and polishing.
daveejhitchins wrote:The PCB dimensions I use are all centered around the case drawing I have and from snippets I've found whilst rummaging through the various documents I recovered. Still needs a few 'slight' tweaks, though!
I looked at your DXF drawing from a while back, took measurements from that and redrew it. You can see the results in this SVG file, previewed here:
Bitmap export of measurements SVG file.
Bitmap export of measurements SVG file.
The DXF file produced from the SVG file should be almost identical to the DXF file you provided, but I wanted to make sure that I knew how it had been made, and I also wanted the measurements to be documented. That's something that my cartridge case measurements file no longer does because the design has been updated many times since I started out doing that work.
User avatar
1024MAK
Posts: 12103
Joined: Mon Apr 18, 2011 5:46 pm
Location: Looking forward to summer in Somerset, UK...
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by 1024MAK »

daveejhitchins wrote:
paulb wrote:What form would this have? A kind of cable that plugs into the socket?
I was thinking of just a PCB to lift the relevant cartridge out of the recess for better access. It would have an identical socket so that the DUT would just plug-in . Oh! and support blocks to hold it steady. I hadn't thought of fitting any kind of connectors, just pads, however, it would seem prudent, after looking at your board, to fit a row of pins so that the signals could be brought out
So a bit like the extender cards as used for testing rack mounted cards used in industrial racks. These have a male connector at one end, a female connector at the other end, with all pins connected straight through. They are used to extend the card under test out from the rack so that test measurements can be made, or if the card has presets etc, adjustements can be made.

Mark
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

paulb wrote:So, a kind of debugging board: an Acorn Electron "cartridge bus pirate", as it were.
That is, as Mark mentions, below, an extender board.
paulb wrote:I don't know what kind of print times your printer supports, but I hope it doesn't end up being days of continuous printing and polishing.
I have a Huxley and don't know what the print times will be (maybe someone has experience with these?). Not sure I'll be polishing - maybe a time thing!
paulb wrote:The DXF file produced from the SVG file should be almost identical to the DXF file you provided, but I wanted to make sure that I knew how it had been made, and I also wanted the measurements to be documented. That's something that my cartridge case measurements file no longer does because the design has been updated many times since I started out doing that work.
Hmmm! perhaps we need a 'gold standard' drawing and then, like you said, get it archived, once we know for sure it's a working model.

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

daveejhitchins wrote:
paulb wrote:So, a kind of debugging board: an Acorn Electron "cartridge bus pirate", as it were.
That is, as Mark mentions, below, an extender board.
I guess such a board could also be used to drive a cartridge without the Plus 1. That could be useful for testing using other hardware and doing things like programming on-board EEPROMs from modern computers. This kind of thing has been under consideration for a while, but the choice of sockets is important to get right. If you have any suggestions about parts, it could also be interesting to get such a board made.
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

I had a quick search on Digikey for "card edge connectors", specifically "edgeboard connectors", with the following criteria:
  • Gender: female
  • Number of positions: 44
  • Number of positions per bay/row: 22
  • Number of rows: 2
  • Pitch: 2.54mm
  • Mounting type: through-hole
I got these results (short link, may expire at some point), with the stocked items being $10 or more. There are also non-stock items with lead times for less, and they may support a wider range of card thicknesses. The stocked items all support 1.57mm cards only.
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

paulb wrote:The stocked items all support 1.57mm cards only.
With tolerances 1.6mm will be fine.

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

Refining that earlier search, dropping the "number of positions per bay/row", actually gives some cheaper options, including this one for around $3. For around $5, you can get one with additional mounting points.
User avatar
MartinB
Posts: 5612
Joined: Mon Mar 31, 2008 10:04 pm
Location: Obscurity
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by MartinB »

Don't forget that for an extension card you ideally want right-angle mounting pins....

Image
right-angle edge connector.jpg
right-angle edge connector.jpg (4.79 KiB) Viewed 4207 times
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

MartinB wrote:Don't forget that for an extension card you ideally want right-angle mounting pins....
Yes, davidb and I were discussing this yesterday, and if I were to add the socket to the board I just made (maybe a shortened version, but not too short as you still need to get at the broken-out pins), it would probably only make sense to try connecting other cartridges to the top along the same axis. Otherwise, there are all sorts of structural issues, although I'd worry about the physical loading, anyway.

For a "cartridge driver" board that need not be used with the Plus 1, one has more freedom with the mounting. We were talking about a very simple breakout board for use with a breadboard for that purpose.

Anyway, choosing "through hole, right angle" for the mounting type gives a couple of products, one for $6 and one with extra mounting holes for $8.
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

I actually prefer the edge mounted type of connector, that have shaped fingers that sit at either side of the PCB - sort of balances out everthing a little better!

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

daveejhitchins wrote:I actually prefer the edge mounted type of connector, that have shaped fingers that sit at either side of the PCB - sort of balances out everthing a little better!
Product links or they don't exist! :wink:

Meanwhile, here's a picture of the prototyping cartridge and a simple clock-dividing circuit, just to test the PHI2 signal:
Prototyping cartridge in the Plus 1 with breadboard
Prototyping cartridge in the Plus 1 with breadboard
(Mega Games Cartridge in the green case in the background, by the way.)

The LED blinks at about 2 Hz, which is what you'd expect. Well, around (2000000 / 2**20) or 1.9 Hz. The division is done by 5 binary counters (74HC193) and there's a 74HC04 to do negation of nRST to reset the counters.
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

Go to the Samtec web site and search for this number: EMF-130-01-L-D You'll find a 3D rotatable image. This is an expensive one (Samtec) but there are lower cost versions. The Jafa Mode 7 Adaptor uses this kind of connector.

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

daveejhitchins wrote:Go to the Samtec web site and search for this number: EMF-130-01-L-D You'll find a 3D rotatable image. This is an expensive one (Samtec) but there are lower cost versions. The Jafa Mode 7 Adaptor uses this kind of connector.
Bringing that product up on the RS site, it indicates a pitch of 1.27mm, though. Maybe that's the pitch of the board connectors, not the socket itself. Searching for this kind of thing is frustrating!
User avatar
daveejhitchins
Posts: 7446
Joined: Wed Jun 13, 2012 6:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by daveejhitchins »

paulb wrote:Bringing that product up on the RS site, it indicates a pitch of 1.27mm, though. Maybe that's the pitch of the board connectors, not the socket itself. Searching for this kind of thing is frustrating!
Sorry, I didn't bother with the pitch . . . I was just aiming to show the connector to PCB arrangement.

Dave H :D
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

Here's another circuit I tried out:
Cartridge with modifiable counter circuit
Cartridge with modifiable counter circuit
This one lets you set the top eight bits of a six 4-bit counter (74HC193) arrangement by writing to &FC80, with the counter being updated on every clock cycle. The top eight bits are displayed using LEDs.

The address selection is performed using two 74HC138 decoders, with nINFC, RnW and PHI2 being used in conjunction with A0..A7 as inputs, and with the output being used as PL# (parallel load) for the two 74HC193 counters that can be modified.

One enhancement to this might involve having the counters raise an interrupt when wraparound occurs, although I'd need to read up about this first.
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

daveejhitchins wrote:
paulb wrote:Bringing that product up on the RS site, it indicates a pitch of 1.27mm, though. Maybe that's the pitch of the board connectors, not the socket itself. Searching for this kind of thing is frustrating!
Sorry, I didn't bother with the pitch . . . I was just aiming to show the connector to PCB arrangement.
Going through links to various sites, I also found these connectors. Unfortunately, the pictures are not very good and there are no datasheets, but maybe the socket pitch and the board connector pitch are both 1.27mm.
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

So, I developed the previous circuit further, making the counter readable via &FC80. This requires some multiplexers (74HC4052) so that the outputs from the counters (Q0..Q3 from each 74HC193) are isolated from the data bus until the appropriate selection condition is present, whereupon the multiplexer channel is enabled. In fact, I just use one channel in the multiplexers, setting E# (output enable negated) low when the CPU wants to read from &FC80.

For eight data bits, I need four 74HC4052s, so this boosts the chip count to thirteen! (One 74HC04 for the reset handling, six 74HC193s for the counter, two 74HC138s for the address selection logic, and four 74HC4052s for the output multiplexing.)
Cartridge with readable and writeable counter
Cartridge with readable and writeable counter
It's now possible to do something like this:

Code: Select all

?&FC80=100:REPEAT:PRINT ?&FC80:UNTIL FALSE
This sets the counter and shows it counting down. The rate is still leisurely - each unit is sixteen bits' worth of cycles - but the aim would be to make the counter a multiple of, say, four bits' worth of cycles (sixteen), which is arguably the minimum sensible unit for what I envisage this being useful for. In fact, I happen to have a 14-bit binary counter IC (74HC4060), which might be worth trying, and then I'd almost be back to using one breadboard again.

However, one thing I want to investigate is setting an interrupt condition (IRQ#) when the counter crosses zero. This might need another multiplexer to isolate the signal from the bus until I actually want to hold IRQ# low. The 6502 isn't so sophisticated with regard to interrupts, and the ULA doesn't seem to provide additional assistance, so to know whether it is my interrupt being signalled, I'm supposing that the counter is the mechanism that a handler uses to test whether the interrupt just happened, as opposed to something like the VSYNC interrupt.
paulb
Posts: 1456
Joined: Mon Jan 20, 2014 9:02 pm
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by paulb »

In another thread, we were discussing flash memory interfacing, so here's a picture of the experiment involving the Am29F010 IC and various logic ICs:
Flash memory interfacing circuit
Flash memory interfacing circuit
In use here for the logic are 74HC04 (NOT), 74HC08 (AND), 74HC273 (flip-flop) and 74HC138 (decoder) ICs. Maybe I could consolidate the first two into a 74HC00 (NAND) IC, although I haven't really checked. The decoder makes sure that a suitable &FC8x address is used to set the bits in the flip-flop that page the flash memory, affecting A15 and A16, to access different 32K regions. A14 is, of course, selected using the ROMQA signal to provide the two 16K banks allowed per cartridge. I used the LEDs you can see in the picture to reflect the contents of the flip-flop bits.
User avatar
myelin
Posts: 1064
Joined: Tue Apr 26, 2016 10:17 pm
Location: Mountain View, CA, USA
Contact:

Re: Acorn Electron cartridge breakout (prototyping cartridge)

Post by myelin »

i got a batch of these made a year or so ago, and still have eight spare boards left. Now that I've finally figured out how to affordably post PCBs to the UK, would anyone want one? Drop me a PM with your address and I'll post one your way.
SW/EE from New Zealand, now in Mountain View, CA, making Beeb/Elk/Arc hardware projects for fun.
Most interesting: Arcflash, POST Box, Ultimate Electron Upgrade
Post Reply

Return to “8-bit acorn hardware”