Preliminary
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
R REGISTERS
There are two major functions of the R register. First, R register can be used as working registers. Second, the R
registers can be store high-byte data of look-up ROM data. After MOVC instruction executed, the high-byte data of a
ROM address will be stored in R register and the low-byte data stored in ACC.
R initial value = 0000 0000
082H
R
Bit 7
RBIT7
R/W
Bit 6
RBIT6
R/W
Bit 5
RBIT5
R/W
Bit 4
RBIT4
R/W
Bit 3
RBIT3
R/W
Bit 2
RBIT2
R/W
Bit 1
RBIT1
R/W
Bit 0
RBIT0
R/W
ꢀ
Note: Please consult the “LOOK-UP TABLE DESCRIPTION” about R register look-up table application.
PROGRAM FLAG
The PFLAG includes carry flag (C), decimal carry flag (DC) and zero flag (Z). If the result of operating is zero or there is
carry, borrow occurrence, then these flags will be set to PFLAG register.
PFLAG initial value = xxxx x000
086H
PFLAG
Bit 7
-
-
Bit 6
-
-
Bit 5
-
-
Bit 4
-
-
Bit 3
-
-
Bit 2
C
R/W
Bit 1
DC
R/W
Bit 0
Z
R/W
CARRY FLAG
C = 1: If executed arithmetic addition with occurring carry signal or executed arithmetic subtraction without borrowing
signal or executed rotation instruction with shifting out logic “1”.
C = 0: If executed arithmetic addition without occurring carry signal or executed arithmetic subtraction with borrowing
signal or executed rotation instruction with shifting out logic “0”.
DECIMAL CARRY FLAG
DC = 1: If executed arithmetic addition with occurring carry signal from low nibble or executed arithmetic subtraction
without borrow signal from high nibble.
DC = 0: If executed arithmetic addition without occurring carry signal from low nibble or executed arithmetic subtraction
with borrow signal from high nibble.
ZERO FLAG
Z = 1: After operation, the content of ACC is zero.
Z = 0: After operation, the content of ACC is not zero.
SONiX TECHNOLOGY CO., LTD
Page 27
Revision 0.5