参数资料
型号: SN8P1603S
厂商: SONIX Technology Co., Ltd.
英文描述: 8-Bit Micro-Controller
中文描述: 8位微控制器
文件页数: 25/94页
文件大小: 540K
代理商: SN8P1603S
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 25
Revision 1.94
WORKING REGISTERS
The RAM bank0 locations 82H to 84H store the specially defined registers such as register R, Y, Z, respectively shown
in the following table. These registers can use as the general-purpose working buffer or access ROM’s and RAM’s
data. For instance, all of the ROM table can be looked-up by R, Y and Z registers. The data of RAM memory can be
indirectly accessed with Y and Z registers.
Y, Z REGISTERS
The Y and Z registers are the 8-bit buffers. There are three major functions of these registers. First, Y and Z registers
can be used as working registers. Second, these two registers can be used as data pointers for @YZ register. Third,
the registers can address ROM location to look up ROM data.
084H
Bit 7
Bit 6
Bit 5
Bit 4
Y
YBIT7
YBIT6
YBIT5
YBIT4
Read/Write
R/W
R/W
R/W
R/W
After reset
0
0
0
0
083H
Bit 7
Bit 6
Bit 5
Bit 4
Z
ZBIT7
ZBIT6
ZBIT5
ZBIT4
Read/Write
R/W
R/W
R/W
R/W
After reset
0
0
0
0
The @YZ that is data point_1 index buffer located at address 0E7H in RAM bank 0. It employs Y and Z registers to
addressing RAM location to read/write data through ACC. The Lower 4-bit of Y register points to RAM bank number
and Z register to RAM address number, respectively. The higher 4-bit data of Y register is truncated in RAM indirectly
access mode.
Example: Following example uses indirectly addressing mode to access data in the RAM address 025H of
bank0.
B0MOV
Y, #00H
; To set RAM bank 0 for Y register
B0MOV
Z, #25H
; To set location 25H for Z register
B0MOV
A, @YZ
; To read a data into ACC
Example: Clear general-purpose data memory area of bank 0 using @YZ register.
B0MOV
Y, #0
; Y = 0, bank 0
B0MOV
Z, #07FH
; Z = 7FH, the last address of the data memory area
CLR_YZ_BUF:
CLR
@YZ
; Clear @YZ to be zero
DECMS
Z
; Z – 1, if Z= 0, finish the routine
JMP
CLR_YZ_BUF
; Not zero
CLR
@YZ
END_CLR:
; End of clear general purpose data memory area of bank 0
.
Note: Please consult the “LOOK-UP TABLE DESCRIPTION” about Y, Z register look-up table application.
Bit 3
YBIT3
R/W
0
Bit 2
YBIT2
R/W
0
Bit 1
YBIT1
R/W
0
Bit 0
YBIT0
R/W
0
Bit 3
ZBIT3
R/W
0
Bit 2
ZBIT2
R/W
0
Bit 1
ZBIT1
R/W
0
Bit 0
ZBIT0
R/W
0
相关PDF资料
PDF描述
SN8P1603X 8-Bit Micro-Controller
SN8P1604 8-Bit Micro-Controller
SN8P1604AK 8-Bit Micro-Controller
SN8P1604AP 8-Bit Micro-Controller
SN8P1604AQ 8-Bit Micro-Controller
相关代理商/技术参数
参数描述
SN8P1603X 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604AK 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604AP 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604AQ 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller