Is it possible to simulate external memory with a DBW of 16-bit? My external memory is setup so that 2 chips with 8-bit memory are sharing the same memory location. I would like to be able to simulate this with the uVision debugger. I enabled the memory region for the debugger with the statement
MAP 0x10000000,0x1000FFFF READ WRITE // allow R/W access to external
Sorry, I'm simulating an ADuC7026. I configure it in the following manner.
GP2CON = 0x02222000; // WS, RS, AE, MS0 GP3CON = 0x22222222; // AD0 - AD7 GP4CON = 0x22222222; // AD8 - AD15 XMCFG = 1; // Enable external memory access XM0CON = 3; // 16-bit DBW, Enable memory region 0 XM0PAR = 0xA722; // Enable byte write strobe
Ok, forgetting data bus width, I don't think data bus width is my problem. I have 32k worth of addresses (0x000 - 0x7FFF) and each addresses can hold 2 bytes (16 bits) worth of data. That's 64kBytes worth of data from 0x1000000 to 0x10007FFF. How can I get the simulator to reflect that?