Toshiba H1 Series User Manual

Page 190

Advertising
background image

TMP92CZ26A

92CZ26A-187

(c) Setting memory start addresses and address areas

An example of specifying a 64-Kbyte address area starting from 010000H using the CS0

areas i describes.

Set 01H in MSAR0<S23:16> (Corresponding to the upper 8 bits of the start address).

Next, calculate the difference between the start address and the anticipated end address
(01FFFFH) based on the size of the CS0 area. Bits 20 to 8 of the result correspond to the
mask value to be set for the CS0 area. Setting this value in MAMR0<V20:8> sets the area
size. This example sets 07H in MAMR0 to specify a 64K-byte area.

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

0 1 F F F F

S23 S22 S21 S20 S19 S18 S17 S16

0 0 0 0 0 0

0 1

0 1

H

V20 V19 V18 V17 V16 V15

V14 to V9

V8

0 0 0 0 0 0

0 0 1 1 1

1

1

1

1

1

1

1

1

1

1

1

1

1

0

7

H

H

Memory
end
address

Memory
start
address

CS0 area
size
(64 Kbytes)

Memory address
mask register
setting

MSAR0

MSMR0

Setting of 07H specifies a 64-Kbyte area.

(d) Address area size specification

Table 3.8.3

shows the relationship between CS area and area size. “

Δ” indicates areas

that cannot be set by memory start address register and address mask register
combinations. When setting an area size using a combination indicated by “

Δ”, set the start

address mask register in the desired steps starting from 000000H.

If the CS2 area is set to 16 Mbytes or if two or more areas overlap, the smaller CS area

number has the higher priority.

Example: To set the area size for CS0 to 128 Kbytes:

a. Valid start addresses

000000H

020000H

040000H

060000H

128 Kbytes

128 Kbytes

128 Kbytes

Any of these addresses may be set as the start address.

:

b. Invalid start addresses

000000H

010000H

030000H

050000H

64 Kbytes

128 Kbytes

128 Kbytes

This is not an integer multiple of the desired area size setting.

Hence, none of these addresses can be set as the start address.

:


Advertising
This manual is related to the following products: