The routine downloaded from the ucos official website has been verified to have no priority grouping settings. If AIRCR [10: 8] is 0, it means that the interrupt grouping is not set, and the default is to sort the interrupts according to the interrupt vector number.
The grouping of STM32
#define NVIC_PriorityGroup_0 ((u32)0x700) /* 0 bits for pre-emption priority 4 bits for subpriority */
#define NVIC_PriorityGroup_1 ((u32)0x600) /* 1 bits for pre-emption priority 3 bits for subpriority */
#define NVIC_PriorityGroup_2 ((u32)0x500) /* 2 bits for pre-emption priority 2 bits for subpriority */
#define NVIC_PriorityGroup_3 ((u32)0x400) /* 3 bits for pre-emption priority 1 bits for subpriority */
#define NVIC_PriorityGroup_4 ((u32)0x300)/* 4 bits for pre-emption priority 0 bits for subpriority */
After repeated experiments, the grouping method of NVIC_PriorityGroup_0 and NVIC_PriorityGroup_4 will not cause interrupt nesting!
The default interrupt priority of SYSTICK in STM32 is 6
Previous article:STM32 timer as external pulse signal counter
Next article:STM32 FreeRTOS serial port queue reception
- Popular Resources
- Popular amplifiers
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
- Ranking of installed capacity of smart driving suppliers from January to September 2024: Rise of independent manufacturers and strong growth of LiDAR market
- Industry first! Xiaopeng announces P7 car chip crowdfunding is completed: upgraded to Snapdragon 8295, fluency doubled
- P22-009_Butterfly E3106 Cord Board Solution
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- 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)
- Encoder interface circuit design
- Two measurement methods for current detection resistor connection circuit
- 【RT-Thread software package application works】Multi-function weather clock
- [Erha Image Recognition Artificial Intelligence Vision Sensor] 6. Identify motors and control their operation
- [N32L43x Review] DAC various waveform output tests
- ST60 millimeter wave water medium data transmission test report——part1
- 【GD32E503 Evaluation】 ADC Experiment (Continued)
- STM32 core Arduino board-ZeroKnow mini board with small size
- Programming examples to learn DSP timer and interrupt system
- TI Battery Tester Reference Design for High Current Applications