Download Print this page

Toshiba TLCS-900/H1 Series Manual page 152

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

3.8.2
Control Registers
There are 12 MMU registers, covering 4 functions (program, data read, data write and
LCDC display data), in each of 3 local areas (Local-X, Y and Z), providing easy data access.
(Instructions for use)
First, set the enable register and bank number for each LOCAL register.
The relevant pin and memory settings should then be set to the ports and memory
controller.
When the CPU or LCDC outputs a local area logical address, the MMU converts and
outputs this to the physical address according to the bank number. The physical
address bus is output to the external address bus pin, thereby enabling access to
external memory.
Note 1: Since the common area cannot be used as local area, do not set a bank number
Note 2: Changing program BANK number (LOCALPX, Y or Z) is disabled in the LOCAL
Note 3: After data bank number register (LOCALRn, LOCALWn or LOCALLn; where "n"
(Example)
Note 4: When LOCAL-Z area is used, chip select signal
(*1)
If COMMON-Z area is not used as data write memory, this setting is not required.
(*2)
If COMMON-Z area is not used as LCD display memory, this setting is not required.
to LOCAL register which overlaps with the common area.
area. The program bank setting for each local area must be changed in the
common area. (But bank setting of read data, write data and data for LCD display
can be changed in the local area.)
means X, Y or Z) is set by an instruction, do not access its memory by the
following instruction because several clocks are required for effective MMU
setting. For this reason, insert between them a dummy instruction which
accesses SFR or another memory, as in the following example.
ld
xix, 200000H
ld
(localrx), 81H
ld
wa, (localrx)
ld
wa, (xix)
P82 pin.
In this case,
works as chip select signal for not only BANK 0 to 15 but also
CSZA
COMMON-Z.
The following setting after reset is required before setting Port82.
ld
(localpz), 80H
ld
(localrz), 80H
ld
(localwz), 80H
ld
(locallz), 80H
− − − − − 0 − − B ;
ld
(p8fc),
(p8fc2), − − − − − 1 − − B ;
ld
92CH21-150
;
;
Data bank number is set
← Inserted dummy instruction which accesses SFR
;
;
Instruction which reads BANK 1 of LOCAL-X area.
CSZA
;
LOCAL-Z bank enable for program
;
LOCAL-Z bank enable for data read
;
LOCAL-Z bank enable for data write
;
LOCAL-Z bank enable for LCD display memory (*2)
Set P82 pin to
output
CSZA
TMP92CH21
should be assigned to
(*1)
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21