interrupt 0 indicates external interrupt 0;
Reference address:About the use of 51 single chip microcomputer interrupt Using
interrupt 1 indicates timer interrupt 0; interrupt 2 indicates external interrupt 1; interrupt 3 indicates timer interrupt 1; interrupt 4 indicates a serial port interrupt; using 0 is the 0th group of registers; using 1 is the first group of registers; using 2 is the second group of registers; using 3 is the third group of registers; The registers in the 51 microcontroller are R0--R7 (not R0-R3) The actual address of R0-R7 in the data memory is determined by the RS1 and RS0 bits in the special function register PSW. When using 0, set RS1 = 0, RS0 = 0, use the 0th group of registers, the actual address of R0--R7 in the data storage area is 00H-07H. R0 (00H) .... R7 (07H) When using 1, set RS1 = 0, RS0 = 1, use the first group of registers, the actual address of R0--R7 in the data storage area is 00H-07H. R0 (08H) .... R7 (0FH) When using 2, set RS1 = 1, RS0 = 0, use the second group of registers, the actual address of R0--R7 in the data storage area is 08H-0FH. R0 (10H) .... R7 (17H) When using 3, set RS1 = 1, RS0 = 1, use the third group of registers, the actual address of R0--R7 in the data storage area is 00H-07H. R0 (18H) .... R7 (1FH)
Previous article:51 MCU interrupt register group selection
Next article:74HC595 controls 8-bit digital tube 51 single chip microcomputer
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- 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
MoreDaily News
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
Guess you like
- "Play Board" + STM32F407 core board voice-controlled colored lights
- There may be a cure for the bald self! Tencent AI analyzes the cause of male baldness for the first time
- [TI recommended course] #Boost and buck-boost DCDC converters help wireless charging design#
- Arduino online simulation website wokwi
- EMC Design in RFID Applications
- [NXP Rapid IoT Review] Classic Snake purely hand-typed
- TMS320VC5509A DSP Learning Route
- SPI device driver learning BUG problem record
- Linux Application Development Manual Based on ARM AM335x
- C6748 Data width problem