There is an Driver in Wiznet website which drives a W5300 TCP/IP controller through Mega128 External Memory Interface. W5300 registers are mapped into Mega128 Memory Space. (W5300 has 8Bit Data Bus and 10Bit Address Bus).
PORTA[7:0] connects to Data Bus and PORTC[7:0] connects to Address Bus.
Question is W5300 has 10Bit Address Bus. What happens to last 2 bits ?
Looks like PORTA is also External Memory Interface Address Bus (A0 ~ A7). So how does this Port work? When its a Data Bus and when its an Address Bus?
Also what about W5300 CS and RESET pins? Where to connect them ?
ALE in Mega128 is Active High. Right? Because CS is Active Low in W5300.
Has anyone ever used that code ?