Processor Status (Ps) - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 2 CPU
2.7.3

Processor Status (PS)

The PS register consists of the bits controlling the CPU operation and the bits
indicating the CPU status.
Processor Status (PS)
As shown in Figure 2.7-6 , the high-order byte of the PS register consists of a register bank pointer (RP)
and an interrupt level mask register (ILM). The ILM indicates the start address of a register bank. The low-
order byte of the PS register is a condition code register (CCR), containing the flags to be set or reset
depending on the results of instruction execution or interrupt occurrences.
PS
Condition Code Register (CCR)
Figure 2.7-7 is a diagram of condition code register (CCR) configuration.
Initial value
I: Interrupt enable flag:
Interrupt requests other than software interrupts are enabled when the I flag is 1 and are masked when the I
flag is 0. The I flag is cleared by a reset.
S: Stack flag:
When the S flag is 0, USP is enabled as the stack manipulation pointer.
When the S flag is 1, SSP is enabled as the stack manipulation pointer.
The S flag is set by an interrupt reception or a reset.
42
Figure 2.7-6 Processor Status (PS) Structure
15
13
12
ILM
Figure 2.7-7 Condition Code Register (CCR) Configuration
7
6
5
-
I
S
-
0
1
8
7
RP
4
3
2
T
N
Z
*
*
*
0
CCR
1
0
V
C
: CCR
*
*
* : Undefined

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents