Need help making an EEPROM programmer.
pooboy_92
Posts: 3
Hi this is my first post on this forum so if it is in the wrong spot I apologize.
I have a 40 pin DIP propeller and am looking to program an EEPROM with a hex file I have on my computer. This EEPROM is going to be used on a z80 computer that I have been building for awhile now. I would just buy a programmer but at the moment I cant afford one and while I can work my way through z80 asm in mot very good with spin or prop asm. What I was thinking of doing was storing the hex in an array and then having the propeller set the address and the data lines properly then set the write enable on the EEPROM. So I was wondering if anyone could give me some source code to help me out. I am aware that the EEPROM is 5V and the propeller is 3.3 volt I have enough transistors to do the level conversion so that is not a problem. I will list the EEPROM model number and a copy of the hex file below, any help is welcome. If you need anymore information please comment below and I will gladly reply.
EEPROM - Atmel AT28C64B
This is the link to the hex file, if anyone has a problem downloading it I can put it on paste bin. I have also attached a zipped version below in case the dropbox link doesn't work.
https://www.dropbox.com/s/6oa0y2mcph36ve2/arduino test.hex
Thanks you
I have a 40 pin DIP propeller and am looking to program an EEPROM with a hex file I have on my computer. This EEPROM is going to be used on a z80 computer that I have been building for awhile now. I would just buy a programmer but at the moment I cant afford one and while I can work my way through z80 asm in mot very good with spin or prop asm. What I was thinking of doing was storing the hex in an array and then having the propeller set the address and the data lines properly then set the write enable on the EEPROM. So I was wondering if anyone could give me some source code to help me out. I am aware that the EEPROM is 5V and the propeller is 3.3 volt I have enough transistors to do the level conversion so that is not a problem. I will list the EEPROM model number and a copy of the hex file below, any help is welcome. If you need anymore information please comment below and I will gladly reply.
EEPROM - Atmel AT28C64B
This is the link to the hex file, if anyone has a problem downloading it I can put it on paste bin. I have also attached a zipped version below in case the dropbox link doesn't work.
https://www.dropbox.com/s/6oa0y2mcph36ve2/arduino test.hex
Thanks you
zip
310B
Comments
If you setup the I/O pins for convenience, the whole operation will be easy. Use P0-P12 for address lines, P16-P23 for data lines (to the 74LVC245). You could use P14 for the 74LVC245 DIR line and P15 for the /OE line. P24 would be the AT28C64B /CE line, P25 the /OE line, P26 the /WR line, and P27 the RDY line. P13 would be a spare. You'll want pullup resistors on all the control lines (/OE, /WR, /CE). 10K would work fine. You'll need a pullup resistor on RDY too since it's open-drain.
You could use Spin or C for writing the programming program. For that matter, you could use FemtoBasic which would be very slow, but would work.
I did have a KISS EPROM programmer, but did that "I haven't used it for a couple of years, so pulled it apart" bit. which was mostly brought on by a "WILL YOU CLEAR OUT ALL OF THAT JUNK" "request". Plus the fact that it wouldn't run on anything higher than Win98. Still got the UV lamp though.
Personally I would make the Prop emulate an EPROM itself as long as the reset time of the Z80 system is longer than the boot time of the Prop. A simple bit of PASM will read the address lines and output the corresponding data as the cycle time of the old EPROMs is quite long compared to the Prop. Another bonus is it is very simple to have a cog running as a memory monitor and hex loader over the serial port.