Last time, we have learned about the interrupt handling process of ARM and how to set the interrupt function. So, does it work like this? The answer is no. Because S3C44B0 has several registers that control whether the interrupt is turned on. These registers are as follows:
1. Program Status Register (CPSR).
This register has two bits that control whether to respond to FIQ or IRQ interrupts. If both bits are set to 1, no interrupts will be responded to. These two bits will be used to disable interrupts later. In RTOS, these two bits are needed to disable interrupts as critical sections.
2. Interrupt Control Register (INTCON)
This register only uses the lower 3 bits: 0, 1, and 2.
When bit 0 is set to 1, FIQ interrupts are not used; when it is set to 0, FIQ interrupts are used.
When bit 1 is set to 1, IRQ interrupts are not used; when it is set to 0, IRQ interrupts are used.
When bit 2 is set to 1, non-vectored IRQ interrupts are used; when it is set to 0, vectored IRQ interrupts are used.
3. Interrupt mode register (INTMOD)
This register sets the interrupt mode used by 26 interrupt sources. When the corresponding bit is set to 0, it means using the IRQ interrupt mode, and when the corresponding bit is set to 1, it means using the FIQ interrupt mode.
4. Interrupt mask register (INTMSK)
This register is used to specify who can respond to interrupts. Bit 26 is special, it is the global interrupt mask bit. If it is set to 1, all interrupts will not be responded to. Bits 0 to 25 are the mask bits of 26 interrupt sources. If set to 1, it means not responding to interrupts, and if set to 0, it means responding to interrupts.
5. Clear the interrupt bit register (I_ISPC)
If you want to interrupt again after an interrupt occurs, you need to clear the corresponding interrupt bit. In this case, use the I_ISPC interrupt register.
When the corresponding bit of this register is set to 1, the corresponding interrupt bit is cleared, and when the next interrupt comes, you can respond again.
By setting the above interrupt registers, you can make the interrupt of S3C44B0 work. Interrupts are very important and must be used skillfully. No matter what kind of CPU, it uses such things. Interrupts are the mechanism for modern high-speed CPUs to communicate with low-speed devices. Without this mechanism, high-speed CPUs cannot work efficiently at all.
Previous article:Embedded system debugging simulation tool
Next article:Learn ARM development(17)
Recommended ReadingLatest update time:2024-11-15 01:45
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Constant voltage and constant current power supply design
- About the difference between CC1312R LAUNCHPAD versions
- About the signal input mode of the power amplifier
- My Journey of MCU Development (Part 1)
- How to understand the accuracy parameter (1.5% + 3) of the Fluke F17B+ multimeter?
- Another bottleneck.
- Easy-to-use and cheap microcontroller is here
- Inverting proportional operational amplifier circuit
- Upper computer displays waveform acquisition
- Evaluation Weekly Report 20211129: There are 4 days left for Anxinke NB-IoT and domestic FPGA applications, and the wireless charging mouse pad is waiting to be disassembled (Extra)