Download Print this page

Toshiba TLCS-900/H1 Series Manual page 157

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

Advertisement

3.8.3
Setting Example
Below is a setting example.
No.
Used as
Main
(a)
routine
Character
(b)
ROM
Sub
(c)
routine
LCD
(d)
display RAM
Stack
(e)
RAM
(a) Main routine (COMMON-Z)
Logical
Physical
Address
Address
← (Same)
C00000H
C000xxH
C000yyH
Instructions from No.2 to No.8 are settings for ports and memory controller.
No.9 is a setting for stack pointer. It is assigned to internal RAM.
No.10 is a setting to execute No.12's instruction.
No.12 is an instruction to call sub routine. When CPU outputs 400000H address, this MMU
will convert and output 000000H address to external address bus: A23 to A0. And
SRAM will be asserted because its logical address is in the CS1area at the same time.
These instructions allow the CPU to branch to sub routine.
(Note) This example assumes a sub routine program is already written on SRAM.
Memory
Setting
,
CSZA
NOR flash
32 bits,
(16 Mbytes,
1 pcs)
1 wait
SRAM
,
CS
1
16 bits,
(16 Mbytes,
1 pcs)
0 waits
Internal RAM
(32 bits, 1 clock)
(16 Kbytes)
No
Instruction
1
org
C00000H
2
ldw
(mamr2), 80FFH
3
ldw
(b2csl), C222H
4
ldw
(mamr1), 40FFH
5
ldw
(b1csl), 8111H
5.1
ld
(localpz), 80H
5.2
ld
(localrz), 80H
6
ld
(p8fc), 02H
7
ld
(p8fc2), 04H
8
ld
(pjfc), 07H
9
ld
xsp, 6000H
10
ld
(localpy), 80H
11
:
12
call
400000H
13
:
14
:
15
:
92CH21-155
Logical
MMU Area
Address
COMMON-Z
C00000H to FFFFFFH
Bank 0 in
800000H to
LOCAL-Z
BFFFFFH
Bank 0 in
400000H to
LOCAL-Y
5FFFFFH
Bank 1 in
LOCAL-Y
Bank 2 in
002000H to 005FFFH
LOCAL-Y
Comment
;
;
CS2 800000-FFFFFF/8 Mbytes
;
CS2 32-bit ROM, 1 wait
;
CS1 400000-7FFFFF/4 Mbytes
;
CS1 16-bit RAM, 0 waits
;
LOCAL-Z bank enable for program
;
LOCAL-Z bank enable for data read
;
P81:
CS
1
;
P82:
CSZA
;
PJ2:
, PJ1:
SRWR
Stack pointer = 6000H
;
;
BANK 0 in LOCAL-Y is set as program for
sub routine
;
;
Call sub routine
;
;
;
TMP92CH21
Physical
Address
000000H to
3FFFFFH
000000H to
1FFFFFH
200000H to
3FFFFFH
, PJ0:
SRLUB
SRLLB
for
CS1
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21