BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
In addition, on entering an interrupt sequence or executing a subroutine call, the status register will
not be pushed onto the stack automatically. If the contents of the status register are important and if
the subroutine can corrupt the status register, precautions must be taken to correctly save it.
• STATUS Register
Bit
7
Name
SC
R/W
R/W
POR
x
Bit 7
SC: The result of the "XOR" operation which is performed by the OV flag and the MSB
of the instruction operation result.
Bit 6
CZ: The operational result of different flags for different instructions.
For SUB/SUBM/LSUB/LSUBM instructions, the CZ flag is equal to the Z flag.
For SBC/SBCM/LSBC/LSBCM instructions, the CZ flag is the "AND" operation
result which is performed by the previous operation CZ flag and current operation zero
flag.
For other instructions, the CZ flag will not be affected.
Bit 5
TO: Watchdog Time-out flag
0: After power up or executing the "CLR WDT" or "HALT" instruction
1: A watchdog time-out occurred.
Bit 4
PDF: Power down flag
0: After power up or executing the "CLR WDT" instruction
1: By executing the "HALT" instruction
Bit 3
OV: Overflow flag
0: No overflow
1: An operation results in a carry into the highest-order bit but not a carry out of the
Bit 2
Z: Zero flag
0: The result of an arithmetic or logical operation is not zero
1: The result of an arithmetic or logical operation is zero
Bit 1
AC: Auxiliary flag
0: No auxiliary carry
1: An operation results in a carry out of the low nibbles in addition, or no borrow
Bit 0
C: Carry flag
0: No carry-out
1: An operation results in a carry during an addition operation or if a borrow does
The "C" flag is also affected by a rotate through carry instruction.
Rev. 1.00
6
5
CZ
TO
PDF
R/W
R
x
0
highest-order bit or vice versa.
from the high nibble into the low nibble in subtraction
not take place during a subtraction operation
37
4
3
2
OV
Z
R
R/W
R/W
0
x
x
1
0
AC
C
R/W
R/W
x
x
"x": unknown
October 26, 2018
Need help?
Do you have a question about the BS86DH12C and is the answer not in the manual?