Proxy wrote:
Paganini wrote:
@floobydust, if I'm understanding you right, this problem only happens if an EEPROM is set up to be programmed in circuit, correct? If WE\ is tied high there might be bus contention if the ROM is selected during a write cycled, but the ROM won't see it as a write and freak out?
why would there be bus contention? if the CS line is pulled low but OE remains high (which is the case when you write to a ROM with no WE line, or where the WE line is permanently pulled high), then it should stay off the bus entirely with no contention
It's a good question. I don't know!
But consider this circuit that was discussed briefly in an old thread:
http://forum.6502.org/download/file.php?id=3507&mode=viewIt seems to be contemplating a regular EPROM like a 27c64, and not one of the devices that floobydust mentioned that have only one activation signal. I don't know what to make of it. Should I just chalk it up to design error and move on?
It turns out that
this thread is where Garth's comment (that I was earlier searching the Primer for) is located:
GARTHWILSON wrote:
Avoiding bus contention if you were to accidentally write to an EPROM address, with a minimum of parts, seems to be the main focus on this one. I would say however that such writes are not really a concern. The program-bug conditions that would make them happen will be rare and probably be encountered only during program development and then fixed, and be at too low of a duty cycle to cause any hardware damage, and the bug would would probably make your program crash anyway even with the hardware protection against writing to EPROM.
I'll see if I can refine the question a little, since after reading the replies so far I'm beginning to see my confusion more clearly:
In reading old forum threads and old literature, I've seen three different viewpoints:
1. You should make sure that ROM CS\ is qualified by RD\ so that you can't cause bus contention if you accidentally write to an address in ROM.
2. Accidentally writing to a ROM address is a rare bug and probably won't hurt anything, so don't worry about it.
3. It's impossible to cause bus contention by accidentally writing to ROM. Why are we talking about this?
I'm having trouble reconciling these 3 viewpoints, hence, this topic.