Panasonic MN101C77C, F77G user manual Interrupt Control Registers

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 110
Image 110

Chapter 3 Interrupts

3-2-2 Interrupt Control Registers

The interrupt control registers include the maskable interrupt control registers (xxxICR) and the non- maskable interrupt control register (NMICR).

Non-Maskable Interrupt Control Register (NMICR address: x'03FE1')

The non-maskable interrupt control register (NMICR) stores the non maskable interrupt request. When the non-maskable interrupt request is generated, the interrupt is accepted regardless of the interrupt mask level (IMn) of PSW. The hardware then branches to the address stored at location x'04004' in the interrupt vector table. The watchdog timer overflow interrupt request flag (WDIR) is set to "1" when the watchdog timer overflows. The program interrupt request flag (PIR) is set to "1" when the undefined instruction is executed.

NMICR

7

6

5

4

3

2

1

0

-

-

-

-

-

PIR

WDIR

Reserved

 

 

 

 

 

 

 

 

(At reset : -----000)

Reserved

Always set to "0".

WDIR

Watchdog interrupt request flag

 

 

0

No interrupt request

 

 

1

Interrupt request generated

 

 

 

 

PIR

Program interrupt request flag

 

 

0

No interrupt request

 

 

1

Interrupt request generated

 

 

Figure 3-2-1 Non-Maskable Interrupt Control Register

(NMICR:x'03FE1', R/W)

On this LSI, when undefined instruction is decoded, the program interrupt request flag (PIR) is set to "1", and the non-maskable interrupt is generated.

If the PIR flag setup is confirmed by the non-maskable interrupt service routine, the reset via the software is recommended, When software reset, the reset pin (p27) outputs "0".

Once the WDIR flag becomes "1" after non-maskable interrupt happens, only the program can clear it to "0".

III- 16 Control Registers

Page 110
Image 110
Panasonic MN101C77C, F77G user manual Interrupt Control Registers, Non-Maskable Interrupt Control Register NMICRx03FE1, R/W