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

Table of Contents

Advertisement

8XC196MC, MD, MH USER'S MANUAL
Table 4-10. Selecting a Window of the Upper Register File
Register RAM
for 32-byte Window
Locations
8XC196MH Only
02E0–02FFH
02C0–02DFH
02A0–02BFH
0280–029FH
0260–027FH
0240–025FH
0220–023FH
0200–021FH
8XC196MC, 8XC196MD, and 8XC196MH
01E0–01FFH
01C0–01DFH
01A0–01BFH
0180–019FH
0160–017FH
0140–015FH
0120–013FH
0100–011FH
4.2.2

Addressing a Location Through a Window

After you have selected the desired window, you need to know the windowed direct address of
the memory location (the address in the lower register file). Calculate the windowed direct ad-
dress as follows:
1.
Subtract the base address of the area to be remapped (from Table 4-11 on page 4-15) 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-15). The
result is the windowed direct address.
Appendix C includes a table of the windowable SFRs with the WSR values and windowed direct
addresses for each window size. Examples beginning on page 4-16 explain how to determine the
WSR value and windowed direct address for any windowable location. An additional example
shows how to set up a window by using the linker locator.
4-14
WSR Value
(00E0–00FFH)
57H
56H
55H
54H
53H
52H
51H
50H
4FH
4EH
4DH
4CH
4BH
4AH
49H
48H
Get other manuals https://www.bkmanuals.com
WSR Value
for 64-byte Window
(00C0–00FFH)
2BH
2AH
29H
28H
27H
26H
25H
24H
WSR Value
for 128-byte Window
(0080–00FFH)
15H
14H
13H
12H

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents