Eight interrupt request sources:
1. External interrupt 0
2. External interrupt 1
3. External interrupt 2
4. External interrupt 3
5. Timer 0 interrupt
6. Timer 1 interrupt
7. Timer 2 interrupt
8. Serial port interruption
All interrupts have four interrupt priority levels:
Priority 0: 0,0 (lowest)
Priority 1: 0,1
Priority 2: 1,0
Priority 3: 1,1 (highest)
Interrupt triggering method:
External interrupts 0, 1, 2, and 3 can be triggered by either low level or falling edge.
Timer interrupt 0, 1: overflow
Serial port interrupt: sending or receiving completed
C language programming, the interrupt query sequence number is the interrupt number:
void Int0_ISR(void) interrupt 0;
void timer0_ISR(void) interrupt 1;
void Int1_ISR(void) interrupt 2;
void timer1_ISR(void) interrupt 3;
void uart_ISR(void) interrupt 4;
void timer2_ISR(void) interrupt 5;
void Int2_ISR(void) interrupt 6;
void Int3_ISR(void) interrupt 7;
Interrupt register:
Previous article:STC89C52 microcontroller experiment 1-light up a light-emitting diode
Next article:Summary of problems with STC89C52 driving SH1106 chip to light up OLED
Recommended ReadingLatest update time:2024-11-16 12:50
- Popular Resources
- Popular amplifiers
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Traffic Light Control System Based on Fuzzy Control (Single-Chip Microcomputer Implementation)
- Principles and Applications of Single Chip Microcomputers (Second Edition) (Wanlong)
- MCU Principles and C51 Programming Tutorial (2nd Edition)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- There is a new IoT product project that is about to be launched, but the definitions of the parameters of the Bluetooth chip NRF52832 are not yet clear,...
- [Io Development Notes] Gizwits Smart Watering Device Practice (3) - Automatically Generate Code Transplantation
- MSP430 Series Embedded Experiment Tutorial---Basics
- Which of the current mainstream smart home wireless protocols is better?
- About MicroPython ESP8266 WIFI settings problem - thanks!
- [STM32WB55 review]——by freebsder
- DSP 28335
- There is a large supply of microcontrollers!
- Share the C language program of FIR filter implemented by MSP430 microcontroller
- [2022 Digi-Key Innovation Design Competition] CAN Communication Data Display Terminal