INTERRUPT SYSTEM

Table 6-2. Interrupt System Special Function Registers

Mnemonic

Description

Address

 

 

 

IE0

Interrupt Enable Register. Used to enable and disable programmable

S:A8H

 

interrupts. The reset value of this register is zero (interrupts disabled).

 

 

 

 

IPL0

Interrupt Priority Low Register. Establishes relative four-level priority for

S:B8H

 

programmable interrupts. Used in conjunction with IPH0.

 

 

 

 

IPH0

Interrupt Priority High Register. Establishes relative four-level priority for

S:B7H

 

programmable interrupts. Used in conjunction with IPL0.

 

 

 

 

NOTE: Other special function registers are described in their respective chapters.

6.28XC251SA, SB, SP, SQ INTERRUPT SOURCES

Figure 6-1 illustrates the interrupt control system. The 8XC251Sx has eight interrupt sources; seven maskable sources and the TRAP instruction (always enabled). The maskable sources in- clude two external interrupts (INT0# and INT1#), three timer interrupts (timers 0, 1, and 2), one programmable counter array (PCA) interrupt, and one serial port interrupt. Each interrupt (except TRAP) has an interrupt request flag, which can be set by software as well as by hardware (see Table 6-3, “Interrupt Control Matrix”). For some interrupts, hardware clears the request flag when it grants an interrupt. Software can clear any request flag to cancel an impending interrupt.

6.2.1External Interrupts

External interrupts INT0# and INT1# (INTx#) pins may each be programmed to be level-trig- gered or edge-triggered, dependent upon bits IT0 and IT1 in the TCON register (see Figure 8-6 on page 8-8). If ITx = 0, INTx# is triggered by a detected low at the pin. If ITx = 1, INTx# is neg- ative-edge triggered. External interrupts are enabled with bits EX0 and EX1 (EXx) in the IE0 reg- ister (see Figure 6-2, “Interrupt Enable Register”). Events on the external interrupt pins set the interrupt request flags IEx in TCON. These request bits are cleared by hardware vectors to service routines only if the interrupt is negative-edge triggered. If the interrupt is level-triggered, the in- terrupt service routine must clear the request bit. External hardware must deassert INTx# before the service routine completes, or an additional interrupt is requested. External interrupt pins must be deasserted for at least four state times prior to a request.

External interrupt pins are sampled once every four state times (a frame length of 666.4 ns at 12 MHz). A level-triggered interrupt pin held low or high for any five-state time period guarantees detection. Edge-triggered external interrupts must hold the request pin low for at least five state times. This ensures edge recognition and sets interrupt request bit EXx. The CPU clears EXx au- tomatically during service routine fetch cycles for edge-triggered interrupts.

6-3

Page 107
Image 107
Intel 8XC251SQ 8XC251SA, SB, SP, SQ Interrupt Sources, External Interrupts, Interrupt System Special Function Registers

Embedded Microcontroller, 8XC251SP, 8XC251SA, 8XC251SQ, 8XC251SB specifications

The Intel 8XC251 series of embedded microcontrollers is a family of versatile and powerful devices, designed to meet the demands of a wide range of applications. With models such as the 8XC251SB, 8XC251SQ, 8XC251SA, and 8XC251SP, this series offers unique features while maintaining a high level of performance and reliability.

At the heart of the 8XC251 microcontrollers is the 8051 architecture, which provides a 16-bit processor capable of executing complex instructions efficiently. This architecture not only allows for a rich instruction set but also facilitates programming in assembly language and higher-level languages like C, which are essential for developing sophisticated embedded systems.

One of the significant features of the 8XC251 family is its integrated peripherals, including timer/counters, serial communication interfaces, and interrupt systems. These peripherals enable developers to implement timing functions, data communication, and real-time processing, all of which are crucial in modern embedded applications. The 8XC251SB and 8XC251SQ models, for instance, come equipped with multiple I/O ports that allow for interfacing with other devices and systems, enhancing their functionality in various environments.

The memory architecture of the 8XC251 devices is noteworthy, featuring on-chip ROM, RAM, and EEPROM. The on-chip memory allows for fast access times, which is essential for executing programs efficiently. Moreover, the EEPROM serves as non-volatile memory, enabling the storage of configuration settings and important data that must be retained even when power is lost.

In terms of operating voltage, the 8XC251 devices are designed to operate in a wide range, typically between 4.0V and 6.0V. This flexibility makes them suitable for battery-powered applications, where energy efficiency is critical. The power management features, including reduced power modes, further enhance their suitability for portable devices.

Lastly, the 8XC251 series is supported by a wide range of development tools and resources, allowing engineers and developers to streamline the development process. This support, combined with the microcontrollers' robust features, makes the Intel 8XC251 family a reliable choice for various embedded applications, such as industrial automation, automotive systems, and consumer electronics.

Overall, the Intel 8XC251SB, 8XC251SQ, 8XC251SA, and 8XC251SP deliver high performance, versatility, and ease of use, making them a preferred choice for embedded system designers looking to develop efficient and effective solutions.