STANDARD AND PTS INTERRUPTS

INT_MASK1

Address:

0013H

 

Reset State:

00H

The interrupt mask 1 (INT_MASK1) register enables or disables (masks) individual interrupt requests. (The EI and DI instructions enable and disable servicing of all maskable interrupts.) INT_MASK1 can be read from or written to as a byte register. PUSHA saves this register on the stack and POPA restores it.

7

NMI

EXTINT3

EXTINT2

OVR2_3

 

 

 

 

0

OVR0_1

EPA3

EPA2

EPA1

 

 

 

 

Bit

 

Function

 

Number

 

 

 

 

 

 

 

 

7:0

Setting a bit enables the corresponding interrupt.

 

 

The standard interrupt vector locations are as follows:

 

 

Bit Mnemonic

Interrupt

Standard Vector

 

NMI

Nonmaskable Interrupt

FF203EH

 

EXTINT3

EXTINT3 pin

FF203CH

 

EXTINT2

EXTINT2 pin

FF203AH

 

OVR2_3

EPA Capture Channel 2 or 3 Overrun

FF2038H

 

OVR0_1

EPA Capture Channel 0 or 1 Overrun

FF2036H

 

EPA3

EPA Capture/Compare Channel 3

FF2034H

 

EPA2

EPA Capture/Compare Channel 2

FF2032H

 

EPA1

EPA Capture/Compare Channel 1

FF2030H

 

An overrun on the EPA capture/compare channels can generate the multiplexed

 

capture overrun interrupts. The EPA_MASK and EPA_PEND registers decode these

 

multiplexed interrupts. Write to EPA_MASK to enable the interrupt sources; read

 

EPA_PEND to determine which source caused the interrupt.

 

 

 

 

 

Figure 6-6. Interrupt Mask 1 (INT_MASK1) Register

6.5.2Modifying Interrupt Priorities

Your software can modify the default priorities of maskable interrupts by controlling the interrupt mask registers (INT_MASK and INT_MASK1). For example, you can specify which interrupts, if any, can interrupt an interrupt service routine. The following code shows one way to prevent all interrupts, except EXTINT3 (priority 14), from interrupting an SIO receive interrupt service routine (priority 06).

6-13

Page 120
Image 120
Intel 80C196NU, 8XC196NP, Microcontroller Modifying Interrupt Priorities, INTMASK1, NMI EXTINT3 EXTINT2, EPA3 EPA2 EPA1

Microcontroller, 80C196NU, 8XC196NP specifications

The Intel 8XC196NP and 80C196NU microcontrollers are part of Intel's renowned 16-bit microcontroller series that gained popularity in the 1980s and 1990s for embedded systems applications. Designed for a variety of applications, these microcontrollers are characterized by their robust performance, versatility, and industry-standard architecture.

The 8XC196NP features an enhanced instruction set with over 100 instructions, allowing for efficient code execution. It operates at clock speeds up to 16 MHz, which contributes to improved performance in time-sensitive applications. The microcontroller is equipped with a 16-bit data bus, enabling more efficient data handling compared to its 8-bit predecessors, thus accommodating complex algorithms and large data sets.

In terms of memory architecture, the 8XC196NP supports an addressable memory space of up to 64 KB of program memory and 64 KB of data memory. This configuration provides sufficient space for large applications while ensuring fast data access. The microcontroller includes integrated features such as timers, serial I/O capabilities, and interrupt processing, which enhance its functionality for real-time applications and control mechanisms.

The 80C196NU, on the other hand, is designed for lower power operation, making it suitable for battery-powered devices. This microcontroller maintains similar features to the 8XC196NP while offering advancements that support low-power consumption. The 80C196NU can also function in a range of temperature environments, making it adaptable for industrial applications.

Both the 8XC196NP and 80C196NU support external memory interfacing, allowing designers to expand the system's capability by connecting additional ROM and RAM. This flexibility makes them appealing for developing complex systems, such as motor controls, industrial automation, and consumer electronics.

Another standout feature of these microcontrollers is their built-in debugging capabilities. Intel provided hardware and software tools that enabled developers to test and troubleshoot their applications effectively, reducing the development time and increasing reliability.

Overall, the Intel 8XC196NP and 80C196NU microcontrollers stand out for their dependability, versatility, and performance, contributing significantly to the evolution of embedded system design. Their legacy continues to influence modern microcontroller technology, ensuring their relevance in a wide array of applications today.