In-circuit programmable eeprom/flash chip

Feel free to talk about any other retro stuff here including Commodore, Sinclair, Atari, Amstrad, Apple... the list goes on!
Post Reply
[email protected]
Posts: 10
Joined: Sat Oct 10, 2020 6:14 pm

In-circuit programmable eeprom/flash chip

Post by [email protected] »


I am currently working on Ben Eater's 6502 project and I'm getting tired of popping out the eeprom each time I want to program it.  That got me to thinking that this must be a common issue and I thought someone here might have run across this. Perhaps a flash chip that provides a virtual eeprom interface?  

Maybe I'm just dreaming, but thinking bigger than this project, perhaps it could be incorporated into a cartridge with a USB interface and then my C64 could be programmed like an Arduino. ?

 

For now I will continue popping the eeprom in and out of the breadboard, but I'd love to hear your thoughts.

 

--Luke

EMwhite
Posts: 220
Joined: Mon Sep 07, 2020 1:02 pm

In-circuit programmable eeprom/flash chip

Post by EMwhite »


I don't have a good answer but you can at least minimize the to/fro & hassle by using a zif socket in the breadboard.

I'm not big on pushing ICs into sockets, probably displaced fear from the 5 times I folded legs of ICs in the 80s on my Commodore projects and while breadboards are more forgiving, having the IC elevated from the rest of the wiring, only a simple lever stands in the way of a quick pop-out. < $5 @ Adafruit. 

 

TomXP411
Posts: 1760
Joined: Tue May 19, 2020 8:49 pm

In-circuit programmable eeprom/flash chip

Post by TomXP411 »


You can do it with a Teensy microcontroller... that's what Eva did with the Backbit, but you'd probably have to write the software to do the job. 

[email protected]
Posts: 10
Joined: Sat Oct 10, 2020 6:14 pm

In-circuit programmable eeprom/flash chip

Post by [email protected] »



9 hours ago, TomXP411 said:




You can do it with a Teensy microcontroller... that's what Eva did with the Backbit, but you'd probably have to write the software to do the job. 



Thanks for sharing BackBit. I'd not heard of this project. I'll look into this approach.

I had considered rolling my own with a Arduino mega and some SPI flash memory as I'm familiar with both, but I'm worried about timing. 

[email protected]
Posts: 10
Joined: Sat Oct 10, 2020 6:14 pm

In-circuit programmable eeprom/flash chip

Post by [email protected] »



10 hours ago, EMwhite said:




I don't have a good answer but you can at least minimize the to/fro & hassle by using a zif socket in the breadboard.



I'm not big on pushing ICs into sockets, probably displaced fear from the 5 times I folded legs of ICs in the 80s on my Commodore projects and while breadboards are more forgiving, having the IC elevated from the rest of the wiring, only a simple lever stands in the way of a quick pop-out. < $5 @ Adafruit. 



 



That is a good call.  I'm concerned about bent pins myself. I didn't consider a breadboard compatible ZIF socket. 

TomXP411
Posts: 1760
Joined: Tue May 19, 2020 8:49 pm

In-circuit programmable eeprom/flash chip

Post by TomXP411 »



16 hours ago, [email protected] said:




Thanks for sharing BackBit. I'd not heard of this project. I'll look into this approach.



I had considered rolling my own with a Arduino mega and some SPI flash memory as I'm familiar with both, but I'm worried about timing. 



The Mega might not be fast enough, but the Teensy and the Grand Central should be. (I'm making the assumption you're running at 1MHz.)

The Teensy 3.5 already has a DIP-ish package and a memory card reader, so you can just plop it down on a breadboard. You may need level converters on the output side, although the input side (your address bus) is 5v safe. 

Note that the Teensy 3.6 is not 5v safe. So even though they look similar, the 3.6 will not work without additional support hardware. 

Here's a post I found on writing directly to the pins in parallel, which is important if you're optimizing for speed:

https://forum.pjrc.com/threads/17532-Tutorial-on-digital-I-O-ATMega-PIN-PORT-DDR-D-B-registers-vs-ARM-GPIO_PDIR-_PDOR

 

[email protected]
Posts: 10
Joined: Sat Oct 10, 2020 6:14 pm

In-circuit programmable eeprom/flash chip

Post by [email protected] »


Just a quick follow up.  I started down the road of building my own eeprom emulator when I stumbled across the EPROM Emulator project by Kris Sekula.  I built the kit and I have it working with my BE6502 setup and it works pretty much the way I imagined.  It is designed to emulate a 27cXXX eprom, but with just a couple minor changes (pin 1 and pin 27) I am able to use it in place of the 28cXXX eeprom.  Now I am able to write 6502 assembly in VSCode and use a Makefile to build and deploy the code directly on to the BE6502.  It even triggers the reset line after code is deployed.  ?

 

PXL_20210201_235724264.thumb.jpg.d45f466a24aaf07a2cd3d8ff62cdb0fe.jpg

[email protected]
Posts: 1
Joined: Sun Feb 07, 2021 4:20 am

In-circuit programmable eeprom/flash chip

Post by [email protected] »


Nice one Luke! I guess by now you had a chance to use the emulator long enough to "solidify" your opinion ... still happy using it?

[email protected]
Posts: 10
Joined: Sat Oct 10, 2020 6:14 pm

In-circuit programmable eeprom/flash chip

Post by [email protected] »



17 hours ago, [email protected] said:




Nice one Luke! I guess by now you had a chance to use the emulator long enough to "solidify" your opinion ... still happy using it?



Yes, I am quite happy using it.  My use case is fairly simple compared to how some of the folks on the mailing list are using it, but it has dramatically simplified my development flow.  I currently write to the onboard flash memory and set it to load automatically at power on. So far I have not experienced any issues whatsoever. 

I appreciate your work on developing and sharing this project. It has definitely helped resolve a pain point for me. ?

peapod
Posts: 15
Joined: Sun Jul 05, 2020 9:33 pm

In-circuit programmable eeprom/flash chip

Post by peapod »


Bit late to the party so apologies all, I've got a hold of one of these https://www.exxoshost.co.uk/forum/viewtopic.php?f=44&t=2018&sid=aabef2c37ad131918d33376235259bf9 for when I get my a600 back up and running or my X16 which ever happens first.

For the TLDR brigade basically it's a 27c 400 or  800 emulator that can be reflashed over USB.

Hope it is of use to anyone reading this in the future

 

Post Reply