Toshiba H1 Series Data Book page 190

32bit micro controller tlcs-900/h1 series
Table of Contents

Advertisement

(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
S23 S22 S21 S20 S19 S18 S17 S16
MSAR0
0
0
0
0
0
0
V20 V19 V18 V17 V16 V15
MSMR0
0
0
0
0
0
0
(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
:
b. Invalid start addresses
000000H
010000H
030000H
050000H
:
0
0
1
1
1
1
1
1
1
F
0
0
1
1
H
V14 to V9
0
0
0
1
1
1
1
1
7
Setting of 07H specifies a 64-Kbyte area.
128 Kbytes
128 Kbytes
128 Kbytes
64 Kbytes
128 Kbytes
128 Kbytes
92CZ26A-187
1
1
1
1
1
1
1
1
F
F
V8
1
1
1
1
1
1
1
1
H
Any of these addresses may be set as the start address.
This is not an integer multiple of the desired area size setting.
Hence, none of these addresses can be set as the start address.
TMP92CZ26A
Memory
1
1
1
end
F
H
address
CS0 area
size
(64 Kbytes)
Memory
start
address
Memory address
1
1
1
mask register
setting

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents