Simple address decoder problem.

Status
Not open for further replies.

Jos Brink

Member level 3
Joined
Jan 28, 2004
Messages
64
Helped
9
Reputation
18
Reaction score
2
Trophy points
1,288
Activity points
577
Hello, can anyone help me with the following problem.

I've an ATmega128 connected to an external SRAM and an Ethernet MAC/ PHY. (ax88796b).

I want to use the address range 0x8000 -> 0xFFFF for the SRAM
and the range 0x4000 -> 0x7FFF for the ax88796 chip.

I came up with this simple address decoder (see attach) but i get weird timing problems. I can read/write to the SRAM with succes. But can't seem to write to the Ax88796 chip. All the chips are fast enough.

Can anyone verify if this circuit is suitable, íve seen designs where they combine the RD/WR signals to the decoder or CS lines. But what is the purpose of that?

Thank you all for your time.



Greetings from the rainy Netherlands.


 

hi Jos Brink,
ur address decoding is correct.
how did u conclude that problem is in write.
better u look @ the timing of the read/write cycle for MAC/PHY.
may be ur read/write enable pulse width is less than specified in data sheet.
-kib
 

    Jos Brink

    Points: 2
    Helpful Answer Positive Rating
i messured everything and it all seems to be allright.

I just want to make sure that the problem isn't in the address decoder.
Thank you.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…