Program Status (Ps) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

3.3.2

Program Status (PS)

The program status (PS) indicates the status of program execution, and consists of the
following three parts:
• Interrupt level mask register (ILM)
• System condition code register (SCR)
• Condition code register (CCR)
■ Overview of Program Status Register
The program status register consists of sections that set the interrupt enable level, control the program trace
break function in the CPU, and indicate the status of instruction execution.
■ Program Status Register Configuration
Figure 3.3-2 shows the configuration of the program status register.
Bit no.
PS
■ Unused Bits in the Program Status Register
Unused bits are all reserved for future system expansion. Write values should always be "0". The read
value of this bits is always "0".
■ Interrupt Level Mask Register (ILM: Bit 20 to bit 16)
Bit Configuration of the ILM Register
ILM Functions
The "ILM" determines the level of interrupt that will be accepted. Whenever the "I" flag in the "CCR"
register is "1", the contents of this register are compared to the level of the current interrupt request. If the
value of this register is greater than the level of the request, interrupt processing is activated. Interrupt
levels are higher in priority at value approaching "0", and lower in priority at increasing values up to "31".
Note that bit "ILM4" differs from the other bits in the register, in that setting values for this bit are
restricted.
Figure 3.3-4shows the functions of the "ILM".
Figure 3.3-2 Program Status Register Configuration
31
2120
Unused
Figure 3.3-3 Bit Configuration of the ILM Register
20
19
18
ILM
ILM4 ILM3 ILM2 ILM1 ILM0 Initial value: 01111
CHAPTER 3 REGISTER DESCRIPTIONS
1615
1110
ILM
Unused
SCR
17
16
0807
00
CCR
B
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents