8XC196MC, MD, MH USER’S MANUAL

Table 4-10. Selecting a Window of the Upper Register File

Register RAM

 

WSR Value

WSR Value

WSR Value

 

for 32-byte Window

for 64-byte Window

for 128-byte Window

Locations

 

 

(00E0–00FFH)

(00C0–00FFH)

(0080–00FFH)

 

 

 

 

 

 

 

8XC196MH Only

 

 

 

 

 

 

 

02E0–02FFH

 

57H

 

 

02C0–02DFH

 

56H

2BH

 

02A0–02BFH

 

55H

 

 

0280–029FH

 

54H

2AH

15H

0260–027FH

 

53H

 

 

0240–025FH

 

52H

29H

 

0220–023FH

 

51H

 

 

0200–021FH

 

50H

28H

14H

8XC196MC, 8XC196MD, and 8XC196MH

 

 

 

 

 

 

01E0–01FFH

 

4FH

 

 

01C0–01DFH

 

4EH

27H

 

01A0–01BFH

 

4DH

 

 

0180–019FH

 

4CH

26H

13H

0160–017FH

 

4BH

 

 

0140–015FH

 

4AH

25H

 

0120–013FH

 

49H

 

 

0100–011FH

 

48H

24H

12H

4.2.2Addressing 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

Page 79
Image 79
Intel 8XC196MH, 8XC196MD, 8XC196MC Addressing a Location Through a Window, Selecting a Window of the Upper Register File