IBM EM78P447N manual Interrupt, Controller Reset Block Diagram

Models: EM78P447N

1 58
Download 58 pages 20.07 Kb
Page 26
Image 26
Fig. 8 Controller Reset Block Diagram

EM78P447N

8-Bit Microcontroller with OTP ROM

 

VDD

 

 

Oscillator

D

Q

CLK

CLK

 

 

 

 

CLR

 

 

Power-on

Reset

Voltage

Detector

WDTE

WDT

WDT Timeout

Setup Time

RESET

 

/RESET

Fig. 8 Controller Reset Block Diagram

4.6 Interrupt

The EM78P447N has two interrupts listed below:

(1)TCC overflow interrupt

(2)External interrupt (/INT pin).

R3F is the interrupt status register that records the interrupt requests in the relative flags/bits. IOCF is the interrupt mask register. The global interrupt is enabled by the ENI instruction and is disabled by the DISI instruction. When one of the interrupts (enabled) occurs, the next instruction will be fetched from address 001H. Once in the interrupt service routine, the source of an interrupt can be determined by polling the flag bits in R3F. The interrupt flag bit must be cleared by instructions before leaving the interrupt service routine and before interrupts are enabled to avoid recursive interrupts.

The flag (except ICIF bit) in the Interrupt Status Register (R3F) is set regardless of the status of its mask bit or the execution of ENI. Note that the outcome of R3F are the logic AND of R3F and IOCF (refer to Fig. 9). The RETI instruction ends the interrupt routine and enables the global interrupt (the execution of ENI).

When an interrupt is generated by the INT instruction (enabled), the next instruction will be fetched from address 002H.

22

Product Specification (V1.1) 03.30.2005

(This specification is subject to change without further notice)

Page 26
Image 26
IBM EM78P447N manual Interrupt, Controller Reset Block Diagram