(1) External interrupt request source: external interrupts 0 and 1 are introduced through external pins. There are two pins on the microcontroller, named INT0 and INT1, which are P3.2 and P3.3. There are four bits in the internal TCON that are related to external interrupts.
IT0: INT0 trigger mode control bit, which can be set and reset by software. When IT0=0, INT0 is low level trigger mode, and when IT0=1, INT0 is negative transition trigger mode. The difference between these two modes will be discussed later.
IE0: INT0 interrupt request flag. When there is an external interrupt request, this bit will be set to 1 (this is done by hardware). After the CPU responds to the interrupt, the hardware will clear IE0 to 0.
The purpose of IT1 and IE1 is the same as that of IT0 and IE0.
(2) Internal interrupt request source
TF0: overflow interrupt flag of timer T0. When T0 counts and overflows, TF0 is set by hardware. When the CPU responds to the interrupt, TF0 is cleared by hardware.
TF1: Similar to TF0.
TI, RI: serial port send and receive interrupts.
Previous article:51 MCU interrupt enable register IE
Next article:The structure of the MCS-51 interrupt system
Recommended ReadingLatest update time:2024-11-15 23:22
- Popular Resources
- Popular amplifiers
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Fundamentals and Applications of Single Chip Microcomputers (Edited by Zhang Liguang and Chen Zhongxiao)
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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
- Questions about level conversion circuit in I2C
- Request: 220v mains to 5v dc schematic and pcb package
- Open source Linux phone designed with KiCad
- MSP430F5529 MCP4725 Program
- [STM32WB55 Review] This Nucleo is a little special
- iTOP-4412 development board android4.0 code download and compile
- TI Points Mall Questions
- HIFU ultrasonic knife (high energy focusing control circuit)
- Is wireless fast charging technology really difficult? We can help you experience it in practice!
- Can you build a network without wires? ? X4C experience test