Addressing A Location Through A Window - Intel 8XC196NT User Manual

Table of Contents

Advertisement

Table 4-10. Selecting a Window of the Upper Register File
Register RAM
Locations
for 32-byte Window
(Hex)
03E0–03FF
03C0–03DF
03A0–03BF
0380–039F
0360–037F
0340–035F
0320–033F
0300–031F
02E0–02FF
02C0–02DF
02A0–02BF
0280–029F
0260–027F
0240–025F
0220–023F
0200–021F
01E0–01FF
01C0–01DF
01A0–01BF
0180–019F
0160–017F
0140–015F
0120–013F
0100–011F
4.3.2

Addressing a Location Through a Window

After you have selected the desired window, you need to know the direct address of the memory
location (the address in the lower register file). For SFRs, refer to the WSR tables in Appendix
C. For register file locations, calculate the direct address as follows:
1.
Subtract the base address of the area to be remapped (from Table 4-11 on page 4-18) from
the address of the desired location. This gives you the offset of that particular location.
2.
Add the offset to the base address of the window (from Table 4-12 on page 4-19). The
result is the direct address.
WSR Value
(00E0–00FFH)
5FH
5EH
5DH
5CH
5BH
5AH
59H
58H
57H
56H
55H
54H
53H
52H
51H
50H
4FH
4EH
4DH
4CH
4BH
4AH
49H
48H
MEMORY PARTITIONS
WSR Value
for 64-byte Window
(00C0–00FFH)
2FH
2EH
2DH
2CH
2BH
2AH
29H
28H
27H
26H
25H
24H
WSR Value
for 128-byte Window
(0080–00FFH)
17H
16H
15H
14H
13H
12H
4-17

Advertisement

Table of Contents
loading

Table of Contents