Hi!
I'm trying to interface the 256K x 16 bit SRAM on Infineon's Starter Kit in 16 bit mux mode with the XC161CJ, with /CS1.
My problem is that A16..A18 address lines do not work. I could not detect the pulses with the scope, and the address bus test function also fails. Though 4 bit segment address (A16..A19) is set in Dave.
My settings:
EBCMOD0 = 0x4034 EBCMOD1 = 0x003F FCONCS1 = 0x0031 TCONCS1 = 0x28A9 ADDRSEL1 = 0x4007
The dip switches:
S101: 0x01 S102: 0xBA S102: 0x00 S104: 0xF0 S105: 0x0F S106: 0x00
The lower 64KB seems to work alright, so I dont think there is a problem with the timing, I just cant reach the higher part of the SRAM. The SRAM is set at 0x400000 in uVision.
Is there anyone who has some suggestion for this problem?
Thanks, David
Are you using the correct memory type to access the memory? http://www.keil.com/support/man/docs/c166/c166_le_memtypes.htm
Thanks Mike!
I was not using an xhuge pointer to reach the external RAM, now I set it to xhuge, and it works fine.