Set Signals For Interrupt Request Flags - NEC PD750004 User Manual

4 bit single-chip microcomputer
Table of Contents

Advertisement

µPD750008 USER'S MANUAL
Interrupt
request flag
IRQBT
Set by a reference time interval signal from the basic interval timer/watchdog
timer.
IRQ4
Set by a detected rising or falling edge of an INT4/P00 pin input signal.
IRQ0
Set by a detected edge of an INT0/P10 pin input signal.
The detection edge is specified by the INT0 edge detection mode register
(IM0).
IRQ1
Set by a detected edge of an INT1/P11 pin input signal.
The detection edge is specified by the INT1 edge detection mode register
(IM1).
IRQCSI
Set by a serial data transfer completion signal for the serial interface.
IRQT0
Set by a match signal from timer/event counter 0.
IRQT1
Set by a match signal from the timer counter.
(2) Interrupt priority specification register (IPS)
The interrupt priority specification register selects an interrupt with a higher priority from multiple interrupts
using the low-order three bits.
Bit 3, interrupt master enable flag (IME), specifies whether to disable all interrupts.
The IPS is set using a 4-bit memory manipulation instruction. Bit 3 is set by an EI instruction and reset
by a DI instruction.
When changing the low-order three bits of the IPS, interrupts must be disabled (IME = 0) beforehand.
Example DI
CLR1
MOV
MOV
A RESET signal clears all bits to 0.
Caution Disable interrupts before setting the IPS.
188
Table 6-2. Set Signals for Interrupt Request Flags

Set signals for interrupt request flags

; Disable interrupts
MBE
A,#1011B
IPS,A
; Assign a higher priority to INT1, then enable interrupts.
Interrupt
enable flag
IEBT
IE4
IE0
IE1
IECSI
IET0
IET1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd750006Pd750008Pd75p0016

Table of Contents