NEC 78014Y Series User Manual page 458

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(6) Program status word (PSW)
The program status word is a register to hold the instruction execution result and the current status for interrupt
request. The IE flag to set maskable interrupt enable/disable and the ISP flag to control multiple interrupt servicing
are mapped.
Besides 8-bit units read/write, this register can carry out operations with a bit manipulation instruction and
dedicated instructions (EI and DI). When a vectored interrupt request is acknowledged, and when the BRK
instruction is executed, the contents of PSW is automatically saved into a stack and the IE flag is reset to (0).
If a maskable interrupt request is acknowledged, the contents of the priority specify flag of the acknowledged
interrupt are transferred to the ISP flag. The contents of acknowledged interrupt is also saved into the stack with
the PUSH PSW instruction. It is reset from the stack with the RETI, RETB and POP PSW instructions.
RESET input sets PSW to 02H.
Symbol
7
PSW
IE
www.DataSheet4U.com
458
CHAPTER 18 INTERRUPT FUNCTIONS AND TEST FUNCTION
Figure 18-8. Program Status Word Configuration
6
5
4
3
Z
RBS1
AC
RBS0
2
1
0
When Reset
0
ISP
CY
02H
Use when normal instruction is executed
ISP
0
1
IE
0
1
Priority of Interrupt Currently Being Serviced
High-priority interrupt servicing (low-priority
interrupt disable)
Interrupt request not acknowledged or low
priority servicing (all maskable interrupts
enable)
Interrupt Request Acknowledge Enable/Disable
Disable
Enable

Advertisement

Table of Contents
loading

Table of Contents