1. NVIC Register Group
The STM32 firmware library has the following definitions:
typedef struct
{
vu32 ISER[2];
u32 RESERVED0[30];
vu32 ICER[2];
u32 RSERVED1[30];
vu32 ISPR[2];
u32 RESERVED2[30];
vu32 ICPR[2];
u32 RESERVED3[30] ;
vu32 IABR[2];
u32 RESERVED4[62];
vu32 IPR[11];
} NVIC_TypeDef;
Their corresponding names in the ARM manual are
ISER = Interrupt Set-Enable Registers
ICER = Interrupt Clear-Enable Registers ISPR =
Interrupt Set-Pending Register
ICPR = Interrupt Clear-Pending Register
IABR = Active Bit Register
IPR = Interrupt Priority Registers
Each register has 240 bits. As explained in Interrupt Set-Enable Registers, ISER[0] corresponds to interrupt sources 0 to 31, and ISER[1] corresponds to interrupt sources 32 to 63. STM32 has only 60 interrupt sources, so there is no ISER[2:7].
Referring to the interrupt vector table in the STM32 Technical Reference Manual, the locations of the interrupt sources are:
Position 0 - WWDG = Window Watchdog interrupt
Position 1 - PVD = PVD through EXTI Line detection interrupt
Position 2 - TAMPER = Tamper interrupt
......
Position 58 - DMA2_Channel3 = DMA2 Channel3 global interrupt
Position 59 - DMA2_Channel4_5 = DMA2 Channel4 and DMA2 Channel5 global interrupts
2. System Control Register Group
The STM32 firmware library has the following definitions:
typedef struct
{
vuc32 CPUID;
vu32 ICSR;
vu32 VTOR;
vu32 AIRCR;
vu32 SCR;
vu32 CCR;
vu32 SHPR[3];
vu32 SHCSR;
vu32 CFSR;
vu32 HFSR;
vu32 DFSR;
vu32 MMFAR;
vu32 BFAR;
vu32 AFSR;
} SCB_TypeDef ; /* System Control Block Structure */
Their corresponding names in the ARM manual are
CPUID = CPUID Base Register
ICSR = Interrupt Control State Register
VTOR = Vector Table Offset Register
AIRCR = Application Interrupt/Reset Control Register
SCR = System Control Register
CCR = Configuration Control Register
SHPR = System Handlers Priority Register
SHCSR = System Handler Control and State Register
CFSR = Configurable Fault Status Registers
HFSR = Hard Fault Status Register
DFSR = Debug Fault Status Register
MMFAR = Mem Manage Address Register
BFAR = Bus Fault Address Register
AFSR = Auxiliary Fault Status Register
3. System Clock Register Group
The STM32 firmware library has the following definitions:
typedef struct
{
vu32 CTRL;
vu32 LOAD;
vu32 VAL;
vuc32 CALIB;
} SysTick_TypeDef;
Their corresponding names in the ARM manual are
CTRL = SysTick Control and Status Register
LOAD = SysTick Reload Value Register
VAL = SysTick Current Value Register
CALIB = SysTick Calibration Value Register
Previous article:STM32 direct operation register
Next article:【STM32】Some understanding of FSMC
- 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
- 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
- Commonly used algorithms for drones - Kalman filter (Part 9)
- Reset time problem
- Advantages and disadvantages of 7nm processors
- Digital Circuit History, Moore's Law and Future Trends
- [Multi-function open source custom macro keyboard] Material unboxing - ESP32-S2-KALUGA-1 and ESP32-S3-DEVKITC-1-N8
- 【Project source code】Calculator based on FPGA
- Will 65V GaN technology change the radar market?
- FPGA Design - Timing Constraints (Part 1, Theory)
- MSP430F149 small system development board realizes RS232 serial communication
- Received the board and posted the [Qinheng RISC-V core CH582] development board