Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Microprocessor
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • Solutions
    • HackerRank
      • C Solutions
      • C++ Solutions
      • Java Solutions
      • Python Solutions
      • Algorithms Solutions
      • Data Structures Solutions
    • HackerEarth Solutions
    • Leetcode Solutions
  • JEE 2027
The Computer Science
TheCScience

8051 Microcontroller Interrupts | Microprocessor Tutorials

YASH PAL, April 14, 2026May 1, 2026

Interrupts of the 8051 Microcontroller – The 8051 microcontroller has five interrupts. Out of five interrupts, three (Timer flag 0, Timer flag 1, and serial port interrupt RI or TI) are generated internally by internal operations, and the remaining two (INT0 and INT1) are triggered by external circuitry, which are connected to port pins P3.2 and P3.3.

Table of Contents

  • 8051 Microcontroller Interrupts
    • The Interrupt Enable (IE) Special Function Register

8051 Microcontroller Interrupts

The programmer can control all interrupt functions. The programmer is able to alter control bits in the Interrupt Enable (IE) register, the Interrupt Priority (IP) register, and the Timer Control (TCON) register. The programmer can allow or block, all or any combination of the interrupts by setting or resetting the bits of these registers. The Interrupt Enable (IE) register is used to enable and disable a specific interrupt. The IE special function register is shown in Figure 1. Bit D7 of the IE register is used to enable or disable all interrupts.

The Interrupt Enable (IE) Special Function Register

Power Mode Control (PCON) Register
Figure 1: Power Mode Control (PCON) Register Diagram
BitSymbolFunction
7EAEnable the interrupt bit. Cleared to 0 by the program to disable all interrupts; set to 1 to permit individual interrupts to be enabled by their enable bits.
6–Not implemented.
5ET2Reserved for future use.
4ESEnable serial port interrupt. Set to 1 by the program to enable the serial port interrupt; cleared to 0 to disable the serial port interrupt.
3ET1Enable timer 1 overflow interrupt. Set to 1 by the program to enable timer 1 overflow interrupt; cleared to 0 to disable timer 1 overflow interrupt.
2EX1Enable external interrupt 1. Set to 1 by the program to enable INT1 interrupt; cleared to 0 to disable INT1 interrupt.
1ET0Enable timer 0 overflow interrupt. Set to 1 by the program to enable timer 0 overflow interrupt; cleared to 0 to disable timer 0 overflow interrupt.
0EX0Enable external interrupt 0. Set to 1 by the program to enable the INT0 interrupt; cleared to 0 to disable the INT0 interrupt. Bit addressable as IE.0 to IE.7.
Interrupt enable (IE) register

The Interrupt Priority (IP) register is a special function register that is used to specify the relative priority of each interrupt. In the 8051 microcontroller, an interrupt may be either of low (0) priority or high (1) priority. An interrupt may only interrupt a low priority. The Interrupt Priority (IP) register is shown in Figure 2.

The interrupt priority IP special function register
Figure 2: Interrupt Priority (IP) special function register Diagram
BitSymbolFunction
7–Not implemented.
6–Not implemented.
5PT2Reserved for future use.
4PSPriority of serial port interrupt. Set/cleared by program.
3PT1Priority of timer 1 overflow interrupt. Set/cleared by program.
2PX1Priority of external interrupt 1. Set/cleared by program.
1PT0Priority of timer 0 overflow interrupt. Set/cleared by program.
0PX0Priority of external interrupt 0. Set/cleared by program.
The Interrupt Priority (IP) register

Note: Priority may be 1 (highest) or 0 (lowest), bit-addressable as IP.0 to IP.7.


Microprocessor Subject Tutorials & Notes | Beginners Guide
engineering subjects Microprocessor microprocessor

Post navigation

Previous post
Next post

Introduction to Microprocessor
Generations of Computer
Microprocessor Types
Types of Computer Systems
Types of Programming Languages
Basic Computer Structure
Interfacing Logic Devices
Number System in Computer
Number System Arithmetic – Addition & Subtraction

Microprocessor as CPU
8085 Microprocessor Architecture
Pin Configuration of 8085 Microprocessor
Demultiplexing of Address and Data Bus in 8085 Microprocessor
Basic Operations of the 8085 Microprocessor
Memory Organization in 8085 Microprocessor

Microprocessor memory structure
Memory Interfacing with 8085 Microprocessor
Memory address decoding in a microprocessor
Input/Output Interfacing in Microprocessor

8085 Microprocessor Programming Model
8085 Assembly Language Programming
8085 Microprocessor Instructions
Microprocessor Programming Steps
Flowchart Design of a Program
8085 Microprocessor Data Transfer Instructions
8085 Microprocessor Arithmetic Instructions
8085 Microprocessor Logical Instructions
8085 Microprocessor Branch Instructions
8085 Microprocessor Machine-Processor Control Instructions
Basic Structure of an Assembly Language Program
Programming Techniques for Repeated Tasks
Debugging of a Microprocessor Program

8085 Microprocessor Timing Operations
Timing Diagram of 8085 Microprocessor
Time Delay in Microprocessor
Stack in 8085 Microprocessor
Subroutine in 8085 Microprocessor
MACRO in Microprocessor

Interrupts in 8085 Microprocessor
Digital to Analog Converter (DAC) in Microprocessor
Analog to Digital Converter (ADC) in Microprocessor

Programmable Peripheral Interface
8255 (PPI) Programmable Peripheral Interface
Programmable Interval Timer (PIT) 8253/8254
Programmable Interrupt Controller (PIC) 8259
Direct Memory Access (DMA) Controller 8257

8086 Microprocessor Architecture, Instructions, and Pin Diagram
Addressing Modes of the 8086 Microprocessor
Instruction Set of 8086 Microprocessor
8088 Microprocessor Architecture with Pin Diagram
Difference between 8085, 8086, and 8088 Microprocessors
80186 Microprocessor Architecture
80286 Microprocessor Architecture & Features
80386 Microprocessor Architecture & Features
80486 Microprocessor Architecture & Features
80586 (Pentium) Microprocessor Architecture & Features

8051 Microcontroller Architecture
8051 Microcontroller Memory Organization
8051 Microcontroller Pin Configuration & Programming Model
8051 Microcontroller Timers and Counters
Serial Communication in 8051 Microcontroller
Interrupts of the 8051 Microcontroller
Addressing Modes of the 8051 Microcontroller
Intel MMX Architecture
Dual Core Processor

LED & Multiplexed Display Interfacing with Microprocessor
Liquid Crystal Display (LCD) Pin Configuration & Interfacing
Matrix Keyboard Interfacing with Microprocessor
8279 Keyboard/Display Controller
Programmable Communication Interface (USART) 8251
Serial Communication Standards in Microprocessor
Computer System Standard Buses

TheCScience

At TheCScience.com, our mission is to make quality education accessible to everyone. We provide in-depth, easy-to-understand articles covering Secondary, Senior Secondary, and Graduation-level subjects.

Our content is designed to simplify complex concepts through clear explanations, diagrams, and structured learning—helping students build strong fundamentals and succeed academically without financial barriers.

Pages

About US

Contact US

Privacy Policy

DMCA

Our Tools

Hosting - get 20% off

Engineering Subjects

Internet of Things

Human Values

Digital Communication

Computer System Architecture

Microprocessor

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes