SN8P1700
8-bit micro-controller build-in 12-bit ADC
TO ACCESS DATA in RAM BANK 0
In the RAM bank 0, this area memory can be read/written by these three access methods.
ꢃExample 1: To use RAM bank0 dedicate instruction (Such as B0xxx instruction).
B0MOV
A, 12H
; To move content from location 12H of RAM bank 0 to ACC
ꢃExample 2: To use directly addressing mode (Through RBANK register).
B0MOV
MOV
RBANK, #00H
A, 12H
; To set RAM bank = 0
; To move content from location 12H of RAM bank 0 to ACC
ꢃExample 3: To use indirectly addressing mode with @YZ register.
CLR
B0MOV
B0MOV
Y
; To clear Y register for accessing RAM bank 0.
; To set an immediate data 12H into Z register.
; Use data pointer @YZ reads a data from RAM location
; 012H into ACC.
Z, #12H
A, @YZ
TO ACCESS DATA in RAM BANK 1
In the RAM bank 1, this area memory can be read/written by these two access methods.
ꢃExample 1: To use directly addressing mode (Through RBANK register).
B0MOV
MOV
RBANK, #01H
A, 12H
; To set RAM bank = 1
; To move content from location 12H of RAM bank 0 to ACC
ꢃExample 2: To use indirectly addressing mode with @YZ register.
MOV
A, #01H
Y, A
Z, #12H
A, @YZ
B0MOV
B0MOV
B0MOV
; To set Y = 1 for accessing RAM bank 1.
; To set an immediate data 12H into Z register.
; Use data pointer @YZ reads a data from RAM location
; 012H into ACC.
SONiX TECHNOLOGY CO., LTD
Page 48
Revision 1.94