Hi, I work on ST10F168 and i want to control by EBC 2 SRam chip 1M*8bits like 1 chip 1M*16bits. But how to declare in keil that external memory is 16bits data. I declare it in start166.A66 (_BTYP1 EQU 2) and 1024K ; so i can store 1M*16bits. When i declare a table of 0.5M of int , it's good ; but if i increase the capacity of the table there is a warning : *** WARNING L5: SECTION LOCATED OUTSIDE CLASS AREA SECTION: ?XD0?MAIN CLASS: XDATA0 normally i can have a table of 1M of int ! So how can i use all my memory in 16bits demux mode. Thanks
I can't see what the problem is. I can only say that if you are using the A19 address line, you can't use A20 for general purpose I/O. Why? See the microcontroller manual. Make sure that you properly connected external RAM to the microcontroller. There is a book on Hitex's web site, which, among other things, explains how to connect external memory to C167 MCUs: http://www.hitex.co.uk/pdf/166des35.pdf See Chapter 5.1 'Using Byte-Wide Memory Devices In 16-bit 167 Systems'. - mike
Thanks you for all !