cancel
Showing results for 
Search instead for 
Did you mean: 

how to map mainflash(256K0 into both code and xdata?

wdcai
Associate II
Posted on June 04, 2004 at 00:16

how to map mainflash(256K0 into both code and xdata?

2 REPLIES 2
wdcai
Associate II
Posted on May 17, 2011 at 12:01

Dear Sir!

I want to map 256K mainflash into both code and xdata area. I config page register bit 0,1,2,and fs0 to fs6 is located in page 0 to page6 in xdata,fs7 in code area.

fs0 to fs6,from ( 8000h to ffffh & !psen , I think !_rd&!_wr is also ok)

fs7(8000h to ffffh &psen).

but when I acess page 0~page6 using XBYE[0x8000+i],

it seems fs0 (page0) is always selected whatever pageregister is 0 or other value, page switch can't work at all.

can anybody help me? Thanks!
wdcai
Associate II
Posted on May 17, 2011 at 12:01

I have solved this problem, rs0, csiop don't need any & operator! if _RD or _WR is mixed in the equaltion, problem will occur!