mc68hc705v12 Freescale Semiconductor, Inc, mc68hc705v12 Datasheet - Page 53

no-image

mc68hc705v12

Manufacturer Part Number
mc68hc705v12
Description
M68hc05-based Mcu Hc05 Freescale Semiconductor
Manufacturer
Freescale Semiconductor, Inc
Datasheet
3.3.5 Condition Code Register
MC68HC705V12
Rev. 3.0
The condition code register (CCR) is an 8-bit register whose three most
significant bits are permanently fixed at 111. The condition code register
contains the interrupt mask and four flags that indicate the results of the
instruction just executed. The following paragraphs describe the
functions of the condition code register.
Half-Carry Flag
Interrupt Mask
Negative Flag
Reset:
Read:
Write:
The CPU sets the half-carry flag when a carry occurs between bits 3
and 4 of the accumulator during an ADD or ADC operation. The
half-carry flag is required for binary coded decimal (BCD) arithmetic
operations.
Setting the interrupt mask disables interrupts. If an interrupt request
occurs while the interrupt mask is logic 0, the CPU saves the CPU
registers on the stack, sets the interrupt mask, and then fetches the
interrupt vector. If an interrupt request occurs while the interrupt mask
is set, the interrupt request is latched. Normally, the CPU processes
the latched interrupt as soon as the interrupt mask is cleared again.
A return-from-interrupt (RTI) instruction pulls the CPU registers from
the stack, restoring the interrupt mask to its cleared state. After any
reset, the interrupt mask is set and can be cleared only by a software
instruction.
The CPU sets the negative flag when an arithmetic operation, logical
operation, or data manipulation produces a negative result.
Freescale Semiconductor, Inc.
For More Information On This Product,
Bit 7
1
1
Central Processor Unit (CPU)
Figure 3-6. Condition Code Register (CCR)
Go to: www.freescale.com
= Unimplemented
6
1
1
5
1
1
H
U
4
U = Unaffected
3
1
I
Central Processor Unit (CPU)
N
U
2
Advance Information
U
1
Z
CPU Registers
Bit 0
C
U

Related parts for mc68hc705v12