mc68hc05ct4fn Freescale Semiconductor, Inc, mc68hc05ct4fn Datasheet - Page 33

no-image

mc68hc05ct4fn

Manufacturer Part Number
mc68hc05ct4fn
Description
Mc68hc05 Family Of Microcontrollers Mcus
Manufacturer
Freescale Semiconductor, Inc
Datasheet
3.5 Condition Code Register
MC68HC05CT4
Rev. 2.0
The condition code register (CCR) is a 5-bit register in which the H, N,
Z, and C bits are used to indicate the results of the instruction just
executed, and the I bit is used to enable interrupts. These bits can be
tested individually by a program, and specific actions can be taken as a
result of their state. Each bit is explained in the following paragraphs.
Half Carry (H)
Interrupt (I)
Negative (N)
Zero (Z)
Carry/Borrow (C)
This bit is set during ADD and ADC operations to indicate that a carry
occurred between bits 3 and 4.
When this bit is set, the timer and external interrupt are masked
(disabled). If an interrupt occurs while this bit is set, the interrupt is
latched and processed as soon as the I bit is cleared.
When set, this bit indicates that the result of the last arithmetic, logical,
or data manipulation was negative.
When set, this bit indicates that the result of the last arithmetic, logical,
or data manipulation was zero.
When set, this bit indicates that a carry or borrow out of the arithmetic
logical unit (ALU) occurred during the last arithmetic operation. This
bit also is affected during bit test and branch instructions and during
shifts and rotates.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Central Processing Unit
H
I
CCR
N
Z
C
General Release Specification
Condition Code Register
Central Processing Unit

Related parts for mc68hc05ct4fn