Z8F1602 ZILOG [Zilog, Inc.], Z8F1602 Datasheet - Page 219

no-image

Z8F1602

Manufacturer Part Number
Z8F1602
Description
Z8 Encore Microcontrollers with Flash Memory and 10-Bit A/D Converter
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
Z8F1602AR020EC
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8F1602AR020EC00TR
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8F1602AR020SC
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8F1602AR020SC00TR
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8F1602VS020EC
Manufacturer:
Zilog
Quantity:
10 000
Flags Register
PS017610-0404
The Flags Register contains the status information regarding the most recent arithmetic,
logical, bit manipulation or rotate and shift operation. The Flags Register contains six bits
of status information that are set or cleared by CPU operations. Four of the bits (C, V, Z
and S) can be tested for use with conditional jump instructions. Two flags (H and D) can-
not be tested and are used for Binary-Coded Decimal (BCD) arithmetic.
The two remaining bits, User Flags (F1 and F2), are available as general-purpose status
bits. User Flags are unaffected by arithmetic operations and must be set or cleared by
instructions. The User Flags cannot be used with conditional Jumps. They are undefined at
initial power-up and are unaffected by Reset. Figure 99 illustrates the flags and their bit
positions in the Flags Register.
Figure 99. Flags Register
Interrupts, the Software Trap (TRAP) instruction, and Illegal Instruction Traps all write
the value of the Flags Register to the stack. Executing an Interrupt Return (IRET) instruc-
tion restores the value saved on the stack into the Flags Register.
U = Undefined
Bit
C Z S V D H F2 F1 Flags Register
7
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
Bit
0
User Flags
Half Carry Flag
Decimal Adjust Flag
Overflow Flag
Sign Flag
Zero Flag
Carry Flag
eZ8 CPU Instruction Set
Z8 Encore!
®
201

Related parts for Z8F1602