We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
thanks, it s Ok for my table but the half of it is errone because now the micro use P4.5 although it doesn't. This pin doesn't work, because the upper is P4.4 on A19(SRam). It's not a good solution because the micro use one more adress bit and i don't want ! I just want it use A1->A20 and not A21 ! regards
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 !