Parallel flash?
Vaati
Posts: 712
Has anyone managed to interface parallel flash/eprom to the prop?· I need code...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
*-NEW-* SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
*-NEW-* SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Comments
http://gameboyprogramming.blogspot.com/
There's my small blog with some pictures.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Pins can be saved with shift registers but that is a slowdown.
Latches are faster, giving 8 bits at a time.
For EPROM, such as UV eraseable, well, all mine are common ones that use 5V so you will need resistors on Axx and Dx.
Ground VSS, /OE, /CE, see data sheets for others such as VPP.
VCC to 5V.
A0-A15 most simply requires 16 pins in case of 27C512. (other sizes ... more or less pins)
D0-D7 most simply requires 8 pins in case of 27C512
Simply OUTA the address to read on the A0-Axx pins.
Delay with a repeat 100 or something like that.
Simply INA the D0-D7 pins to read the data.
That all implies that the EPROM has already been programmed.
If you are building an EPROM programmer, you need to know the specs of each one you plan to program.
You will need a programmable power supply that has 0V,5V, maybe 6V for fast program, and 12V,21V, 25V
(although erom programming voltages higher than 12V are very old, such as 27128,2764,2732,2532,2716.)
If you are building an eprom programmer you can save lots of Axx pins by binary counters 4040,
but deja-vu, someone mentioned that recently. Other sequential uses may find that convenient also.
The pin order should be the same for P0-Px as for A0-Ax and D0-Dx unless you want to scramble your code,
like the Propeller Interpreter ROM is scrambled.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I should be typing in Spin now.
So, what would my code look like?
I have code in hex for the AVR that reads and writes gb carts, so I might have to convert that to asm and then pasm...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Consider putting all your ROMS on SD card and using Propeller to emulate the cartridge? (maybe irrelevant idea.)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I should be typing in Spin now.
It would probably be pretty easy too.
Can external chips write to the prop's ram?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Only if there is a RESET and Prop tries to boot the Prop Plug or its own EEPROM,
while those pins are in use by the game system.
UNLESS YOU PROGRAM THAT FEATURE ON PURPOSE.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I should be typing in Spin now.
So, can the prop write more than 32k ram data?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Certainly the prop can write more than 32k - you just need to add latches to talk to all the address pins. Cluso's ramblade and my dracblade can talk to 512k but with minor mods can do more - eg 32 bit addresses if you used all 4 of the 8 bit latches latches on the dracblade which is 2^32 and is far more than any eeproms out there.
There would be many solutions to this problem. Certainly worth brainstorming a bit more before deciding what to do.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
That is basically what I am trying to make, except the ROM would be replaced with flash or an SD card and the ram would be bigger. The prop would take the place of the chip labeled "MBC1."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Unless games cartridges have more than 32K RAM in them I don't know what you are asking,
I'm guessing you need to cache the game ROMs in RAM while they are being played.
I don't know if that is necessary or a problem since it depends on maximum access times.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I should be typing in Spin now.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
Also, a 16MB flash chip is about as expensive as a 2GB SD card. So, SD is definitely best.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
SX Spinning light display·
http://designedbymemicros.blogspot.com/
The hydra has just taken a back seat for now. [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Prop could be chugging away in the background polling for a ram 'read' or a ram 'write' and then if you have preloaded the data off the sd card into hub ram, it might just be possible to get it out onto the data lines quick enough.
But more information might reveal even better solutions. Eg, what are those 32 lines connected to?
More broadly speaking - gameboy on the prop? Well, that could be a worthy task!
Immediate problem - all the 8080 opcodes are emulated but not every single Z80 code. So it might be helpful to see what gameboy source code looks like.
And then there is the graphics issue - the Z80 emulation fits in a cog, but when you add some driver code for input (keyboard/keypad), sd card, display etc, it uses a lot of hub ram, and that eats into ram available for graphics. Everything is a compromise and a lot of things only just fit. So with a text display you need 80x40 bytes =3200 bytes. That won't display much for a game.
It may end up a two prop solution with one prop devoting virtually all its hub ram to graphics.
Thinking of hardware, Cluos's triblade may be the best bet and use two props??
But it would be worth checking first what opcodes the gameboy uses as that could hold things up a lot if you have to ask heater to add more opcodes (which is entirely possible as I've done a few, but extremely tedious). Do you have access to a schematic for the gameboy in question, plus some demo code?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
At least, http://www.devrs.com/gb/ does...
gameboy schematic- what "those 32 lines are connected to"
http://devrs.com/gb/files/gameboy1.gif
Look around devrs.com for a load of gameboy info and links, and check out http://www.reinerziegler.de/readplus.htm for a lot of hardware info.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
I guess no worry, someone has it all under control.
oops: wrong thread, here is what I was talking about:
http://forums.parallax.com/showthread.php?p=879537
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I should be typing in Spin now.
The Prop might be able to take down the gameboy! It might be able to read carts and play them, and emulate the cartridge processes themselves! This would make an awesome prop design contest entry if it all works...
The one problem I can think of with using an SD card is that some of the rom pins in a non-modded gameboy cart are connected to the SRAM... But, I suppose that the prop would really be converting the SD memory to a compatible replacement for the original rom, so it would work out.
I think that the problem is going to be I/O. I may need to stick in another small mcu to do some stuff. The SX might do the job...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
EDIT:·I checked the ramblade topic--that thing is tiny!· Can I have the board·files, or if possible, the reverse board image so I can iron it to a pcb?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Post Edited (Vaati) : 2/8/2010 1:16:17 AM GMT