STM32 shuts down the total interrupt statement

Publisher:lqs1975Latest update time:2016-12-23 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 __set_PRIMASK(1); // turn off the main interrupt

3 /************

4      **********/

5 __set_PRIMASK(0); // Enable general interrupt


Keywords:STM32 Reference address:STM32 shuts down the total interrupt statement

Previous article:What is the maximum input current and output drive current of the STM32 IO port?
Next article:STM32 general T2, T3, T4, T5 timer detailed explanation

Recommended ReadingLatest update time:2024-11-23 07:45

Using DMA in STM32 to generate and capture square waves
1 Introduction to STM32 Microcontrollers The STM32 series microcontrollers are highly integrated microcontrollers based on the Cortex-M3 core from ST. It sets a new benchmark in terms of performance, price, power consumption and real-time performance. It integrates the Cortex-M3 core, as well as a rich set of pe
[Microcontroller]
Using DMA in STM32 to generate and capture square waves
Detailed explanation of STM32 interrupt vector table offset 0x200
ST's library function for relocating the vector table: void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset) {      assert_param(IS_NVIC_VECTTAB(NVIC_VectTab));   assert_param(IS_NVIC_OFFSET(Offset));         SCB- VTOR = NVIC_VectTab | (Offset & (uint32_t)0x1FFFFF80); } Among them, NVIC_VectTab is either
[Microcontroller]
Keil debugging STM32 before parsing main start work
The Cortex M3 kernel has three startup modes: A. The interrupt vector table can be located in the SRAM area through the boot pin setting, that is, the starting address is 0x2000000, and the PC pointer is located at 0x2000000 after reset; B. The interrupt vector table can be located in the FLASH area through the bo
[Microcontroller]
A little discovery of stm32's window watchdog
Today I looked at the window watchdog of stm32 and suddenly found it very abnormal, so I did various experiments and came to the following conclusions. Since the conclusions are only experimental and there is no official conclusion, if someone has a theoretical basis, please let me know, thank you very much. 1. Once t
[Microcontroller]
Implementation of STM32 custom HID USB device
Recently, I need to use STM32 to develop a device that communicates with the host through the HID protocol, so I started to learn USB. I found that the USB system is too huge. I can't understand it directly by looking at the USB routines. I can't find a breakthrough at all. Finally, I found a good book "Circle Teaches
[Microcontroller]
Writing Systick tick timer and delay function for STM32
1. What is the Systick tick timer?      The Systick timer is a system tick timer, a 24-bit countdown timer that automatically reloads the timing initial value from the RELOAD register when it counts to 0. As long as the enable bit in the SysTick control and status register is not cleared, it will never stop and can wo
[Microcontroller]
Writing Systick tick timer and delay function for STM32
STM32 GPIO external interrupt summary
1. STM32 interrupt grouping:   Each GPIO of STM32 can be configured as an external interrupt trigger source, which is also the strength of STM32. STM32 divides many interrupt trigger sources into different groups according to the pin numbers. For example, PA0, PB0, PC0, PD0, PE0, PF0, PG0 are the first group, and so o
[Microcontroller]
【STM32】Basic principles of PWM DAC (experiment: PWM implementation of DAC)
Although the STM32F103ZET6 has an internal DAC, it only has two DAC channels, and there are many other STM32 models that do not have DAC. Usually, a dedicated D/A chip is used to implement it, but this will increase the cost. However, all STM32 chips have PWM output, and there are many PWM output channels and rich r
[Microcontroller]
【STM32】Basic principles of PWM DAC (experiment: PWM implementation of DAC)
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号