欢迎访问ic37.com |
会员登录 免费注册
发布采购

MC908QC16CDRE 参数 Datasheet PDF下载

MC908QC16CDRE图片预览
型号: MC908QC16CDRE
PDF下载: 下载PDF文件 查看货源
内容描述: M68HC08微控制器 [M68HC08 Microcontrollers]
分类和应用: 微控制器外围集成电路光电二极管时钟
文件页数/大小: 274 页 / 3195 K
品牌: FREESCALE [ FREESCALE SEMICONDUCTOR, INC ]
 浏览型号MC908QC16CDRE的Datasheet PDF文件第66页浏览型号MC908QC16CDRE的Datasheet PDF文件第67页浏览型号MC908QC16CDRE的Datasheet PDF文件第68页浏览型号MC908QC16CDRE的Datasheet PDF文件第69页浏览型号MC908QC16CDRE的Datasheet PDF文件第71页浏览型号MC908QC16CDRE的Datasheet PDF文件第72页浏览型号MC908QC16CDRE的Datasheet PDF文件第73页浏览型号MC908QC16CDRE的Datasheet PDF文件第74页  
Central Processor Unit (CPU)
6.3.5 Condition Code Register
The 8-bit condition code register contains the interrupt mask and five flags that indicate the results of the
instruction just executed. Bits 6 and 5 are set permanently to 1. The following paragraphs describe the
functions of the condition code register.
Bit 7
Read:
Write:
Reset:
V
X
X = Indeterminate
6
1
1
5
1
1
4
H
X
3
I
1
2
N
X
1
Z
X
Bit 0
C
X
Figure 6-6. Condition Code Register (CCR)
V — Overflow Flag
The CPU sets the overflow flag when a two's complement overflow occurs. The signed branch
instructions BGT, BGE, BLE, and BLT use the overflow flag.
1 = Overflow
0 = No overflow
H — Half-Carry Flag
The CPU sets the half-carry flag when a carry occurs between accumulator bits 3 and 4 during an
add-without-carry (ADD) or add-with-carry (ADC) operation. The half-carry flag is required for
binary-coded decimal (BCD) arithmetic operations. The DAA instruction uses the states of the H and
C flags to determine the appropriate correction factor.
1 = Carry between bits 3 and 4
0 = No carry between bits 3 and 4
I — Interrupt Mask
When the interrupt mask is set, all maskable CPU interrupts are disabled. CPU interrupts are enabled
when the interrupt mask is cleared. When a CPU interrupt occurs, the interrupt mask is set
automatically after the CPU registers are saved on the stack, but before the interrupt vector is fetched.
1 = Interrupts disabled
0 = Interrupts enabled
NOTE
To maintain M6805 Family compatibility, the upper byte of the index
register (H) is not stacked automatically. If the interrupt service routine
modifies H, then the user must stack and unstack H using the PSHH and
PULH instructions.
After the I bit is cleared, the highest-priority interrupt request is serviced first.
A return-from-interrupt (RTI) instruction pulls the CPU registers from the stack and restores the
interrupt mask from the stack. After any reset, the interrupt mask is set and can be cleared only by the
clear interrupt mask software instruction (CLI).
N — Negative Flag
The CPU sets the negative flag when an arithmetic operation, logic operation, or data manipulation
produces a negative result, setting bit 7 of the result.
1 = Negative result
0 = Non-negative result
MC68HC908QC16 • MC68HC908QC8 • MC68HC908QC4 Data Sheet, Rev. 5
70
Freescale Semiconductor