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
1
1
1
1
0
1
2
3
4
5
6
1
1
1
1
1
1
1
1
0
1
2
3
4
5
6
7
P
A
P
A
P
A
P
A
C
P
A
C
P
A
C
P
B
P
B
P
B
P
B
C
P
B
C
P
B
C
P
C
P
C
P
C
1
1
7
8
H
H
P
C
C
P
C
C
P
C
C
1
8
H
1
8
H
:
U
n
u
s
e
d
,
1
F
H
H
5
F
H
H
3
F
H
H
2
0
6
0
4
0
r
e
a
d
a
s
"
0
0
"
G
e
n
e
r
a
l
P
u
r
p
o
s
e
G
e
n
e
r
a
l
P
u
r
p
o
s
e
G
e
n
e
r
a
l
P
u
r
p
o
s
e
D
a
t
a
M
e
m
o
r
y
D
a
t
a
M
e
m
o
r
y
D
a
t
a
M
e
m
o
r
y
(
6
4
B
y
t
e
s
)
(
9
6
B
y
t
e
s
)
(
3
2
B
y
t
e
s
)
7
F
H
7
F
H
7
F
H
RAM Mapping
Bit No.
Label
Function
C is set if the operation results in a carry during an addition operation or if a borrow does not
take place during a subtraction operation; otherwise C is cleared. C is also affected by a rotate
through carry instruction.
0
C
AC is set if the operation results in a carry out of the low nibbles in addition or no borrow from
the high nibble into the low nibble in subtraction; otherwise AC is cleared.
1
2
3
AC
Z
Z is set if the result of an arithmetic or logic operation is zero; otherwise Z is cleared.
OV is set if the operation results in a carry into the highest-order bit but not a carry out of the
highest-order bit, or vice versa; otherwise OV is cleared.
OV
PDF is cleared by system power-up or executing the ²CLR WDT² instruction.
PDF is set by executing the ²HALT² instruction.
4
PDF
TO is cleared by system power-up or executing the ²CLR WDT² or ²HALT² instruction.
TO is set by a WDT time-out.
5
TO
6~7
¾
Unused bit, read as ²0²
Status (0AH) Register
The Z, OV, AC and C flags generally reflect the status of
the latest operations.
Once an interrupt subroutine is serviced, all the other in-
terrupts will be blocked (by clearing the EMI bit). This
scheme may prevent any further interrupt nesting. Other
interrupt requests may happen during this interval but
only the interrupt request flag is recorded. If a certain in-
terrupt requires servicing within the service routine, the
EMI bit and the corresponding bit of INTC may be set to
allow interrupt nesting. If the stack is full, the interrupt re-
quest will not be acknowledged, even if the related inter-
rupt is enabled, until the SP is decremented. If
immediate service is desired, the stack must be pre-
vented from becoming full.
In addition, on entering the interrupt sequence or exe-
cuting the subroutine call, the status register will not be
pushed onto the stack automatically. If the contents of
the status are important and if the subroutine can cor-
rupt the status register, precautions must be taken to
save it properly.
Interrupt
The device provides an external interrupt and internal
timer/event counter interrupts. The Interrupt Control Reg-
ister (INTC;0BH) contains the interrupt control bits to set
the enable or disable and the interrupt request flags.
All these kinds of interrupts have a wake-up capability.
As an interrupt is serviced, a control transfer occurs by
Rev. 1.50
8
August 22, 2007