m37905 Renesas Electronics Corporation., m37905 Datasheet - Page 31

no-image

m37905

Manufacturer Part Number
m37905
Description
Mitsubishi 16-bit Single-chip Microcomputer 7700 Family / 7900 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m37905F8CSP
Manufacturer:
MIT
Quantity:
20 000
CENTRAL PROCESSING UNIT (CPU)
2.1 Central processing unit (CPU)
Fig. 2.1.6 Structure of PS
2-8
2.1.9 Processor status register (PS)
PS is an 11-bit register.
Figure 2.1.6 shows the structure of PS. Refer to “7900 Series Software Manual” for detale about the
change of each bit.
(1) Bit 0: Carry flag (C)
(2) Bit 1: Zero flag (Z)
(3) Bit 2: Interrupt disable flag (I)
(4) Bit 3: Decimal mode flag (D)
(5) Bit 4: Index register length flag (x)
Note: Be sure to fix bits 15 through 11 to “0.”
arithmetic operation. This flag is also affected by shift and rotate instructions.
instruction to clear it to “0”.
to “0” when otherwise. This flag is invalid in the decimal arithmetic operation.
clear it to “0.”
watchdog timer, and 0 division interrupts. Interrupts are disabled when this flag is “1.” When an
interrupt request has been accepted, this flag is automatically set to “1,” and multiple interrupts
become disabled. Be sure to use the SEI or SEP instruction to set this flag to “1”; and be sure to
use the CLI or CLP instruction to clear this flag to “0.”
arithmetic operation is performed when this flag is “0.” When it is “1,” decimal arithmetic operation
is performed with each 8 bits treated as 2-digit decimal (at m = 1) or each 16 bits treated as 4-digit
decimal (at m = 0). Decimal adjust is automatically performed. Decimal operation is possible only
with the ADC, ADCB, SBC and SBCB instructions. Be sure to use the SEP instruction to set this
flag to “1”; and be sure to use the CLP instruction to clear it to “0.”
register or an 8-bit register. That register is used as a 16-bit register when this flag is “0,” and as
an 8-bit register when it is “1” (Note). Be sure to use the SEP instruction to set this flag to “1”; and
be sure to use the CLP instruction to clear it to “0.”
This flag retains a carry or a borrow generated in the arithmetic and logic unit (ALU) during an
Be sure to use the SEC or SEP instruction to set this flag to “1”; and be sure to use the CLC or CLP
The contents of this flag is undefined at reset.
This flag is set to “1” when the result of an arithmetic operation or data transfer is “0,” and cleared
Be sure to use the SEP instruction to set this flag to “1”; and be sure to use the CLP instruction to
The contents of this flag is undefined at reset.
This flag disables all maskable interrupts except the following: the address matching detection,
This flag is set to “1” at reset.
This flag determines whether addition and subtraction are performed in binary or decimal. Binary
This flag is cleared to “0” at reset.
This flag determines whether each of index register X and index register Y is used as a 16-bit
This flag is cleared to “0” at reset.
b15
0
b14
0
b13
0
b12
0
b11
0
b10
b9
IPL
7905 Group User’s Manual Rev.1.0
b8
b7
N
b6
V
b5
m
b4
x
b3
D
b2
I
b1
Z
b0
C
Processor status register
(PS)

Related parts for m37905