SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 25
V1.4
3.3.2 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 = XXXX XXXX
082H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
R
RBIT7 RBIT6 RBIT5 RBIT4 RBIT3 RBIT2 RBIT1 RBIT0
R/W R/W R/W R/W R/W R/W R/W R/W
¾
Note: Please consult the “LOOK-UP TABLE DESCRIPTION” about R register look-up table application.
3.4 PROGRAM FLAG
The PFLAG includes reset flag, low voltage detect flag, carry flag, 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 = 00xx,x000
086H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PFLAG
NT0 NPD
LVD36
LVD24 -
C DC Z
R/W R/W R/W R/W - R/W
R/W
R/W
3.4.1 RESET FLAG
NT0 NPD Reset Status
0
0 Watch-dog time out
0 1
Reserved
1
0 Reset by LVD
1
1 Reset by external Reset Pin
3.4.2 LVD 2.4V FLAG
LVD24
VDD Status
1
VDD <= 2.4V
0
VDD > 2.4V
Note: This bit is only valid when code option LVD=LVD_M
3.4.3 LVD 3.6V FLAG
LVD36
VDD Status
1
VDD <= 3.6V
0
VDD > 3.6V
Note: This bit is only valid when code option LVD=LVD_H