??? 12/26/04 07:59 Read: times |
#83876 - Code segment adr space VS Xmem adr space Responding to: ???'s previous message |
I wonder your HW design, your 64KBytes Flash EPROM should be in Code segment adr space that activated by PSEN. While your 8255 should be located in XMEM adr space and activated by RD & WR. So there should be no address space contention!?! If such arrangment, there is no need for special decoding arrangment, just connect the 8255 to A0, A1 and activate the 8255 by RD & WR and you will get a memory map of a 64Kbytes ROM code address space and a repeating of 8255 (4 ports) in the XData that can be referenced by DPTR, or @Rn ..etc. If you want to save more XDATA addr space, just use some gates to arrange your pattern to select the 8255 (enable CS instead of hardwired always selected CS)...etc.
Think and you will find there are lots of simple ways.... Happy 8052'ing and best 73 from Li. |