(4) Write data bank register
The bank number used as write data memory is set to these registers. The following is an
example where the data bank register of LOCAL-X is set to "1". When "ld (xix), wa"
instruction is executed, the bank becomes effective only at the write cycle for xix address.
(Example)
SFR
LOCALWX
Bit symbol
(01DCH)
Read/Write
Reset State
Function
Bank for
LOCAL-X
0: Disable
1: Enable
LOCALWY
Bit symbol
(01DDH)
Read/Write
Reset State
Function
Bank for
LOCAL-Y
0: Disable
1: Enable
LOCALWZ
Bit symbol
(01DFH)
Read/Write
Reset State
Function
Bank for
LOCAL-Z
0: Disable
1: Enable
ld
xix, 200000h
ld
(localx), 81h
ld
wa, (localwx)
ld
wa, (xix)
LOCAL-X Register for Write Data
7
6
5
LXE
R/W
0
LOCAL-Y Register for Write Data
7
6
5
LYE
R/W
0
LOCAL-Z Register for Write Data
7
6
5
LZE
Z6
Z5
R/W
0
0
0
(Since bank 3 is overlapping with the COMMON area, this filed must not be specified as 3.)
92CH21-154
;
; Set write data bank.
; <--Insert dummy instruction which accesses
; Write to bank 1 of LOCAL-X area
4
3
X4
X3
0
0
Specify the bank number for the LOCAL-X area
(Since bank 0 is overlapping with the COMMON area, this filed
must not be specified as 0.)
4
3
Y4
Y3
0
0
Specify the bank number for the LOCAL-Y area
(Since bank 3 is overlapping with the COMMON area, this filed
must not be specified as 3.)
4
3
Z4
Z3
R/W
0
0
Specify the bank number for the LOCAL-Z area
TMP92CH21
2
1
0
X2
X1
X0
R/W
0
0
0
2
1
0
Y2
Y1
Y0
R/W
0
0
0
2
1
0
Z2
Z1
Z0
0
0
0
2009-06-19