stm32systick knowledge

Publisher:脑力舞者Latest update time:2018-09-22 Source: eefocusKeywords:stm32  systick Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Systick, also known as tick timer, is a 24-bit simple timer of the STM32 core, often used for delay and system heartbeat functions.

Systick has a total of 4 registers CTRL, LOAD, VAL, CALIB  

The definitions of each bit of SysTick->CTRL are shown in Figure 5.1.2.1:    The definition of SysTick-> LOAD is shown in Figure 5.1.2.2:  The definition of SysTick-> VAL is shown in Figure 5.1.2.3:   SysTick-> CALIB is not commonly used and we will not use it here, so we will not introduce it.  
stm32systick knowledge

stm32systick knowledge

stm32systick knowledge


From the above we can see that it is indeed the simplest timer, and is very suitable for delay.


Keywords:stm32  systick Reference address:stm32systick knowledge

Previous article:STM32CubeMX generates SDIO driver code for SD card
Next article:Summary of Problems in Debugging STM32 in J-LINKV9SWD Mode

Recommended ReadingLatest update time:2024-11-16 15:56

Rotary encoder based on STM32
..\..\SYSTEM\usart\usart.c(1): error:  #5: cannot open source input file "sys.h": No such file or directory #include "..\sys\sys.h" so that you can find the path There was a problem compiling again ..\..\SYSTEM\usart\..\sys\sys.h(3): error: #5: cannot open source input file "stm32f10x_lib.h": No such file or dir
[Microcontroller]
STM32 timer interrupt setting method
Today I debugged the timer function of STM32. There are many STM32 timers, but the debugging is the same, and the registers are one-to-one. Take TIM2 as an example. I searched a lot about timer settings on the Internet, but most of them are the same version, and they are all for library function operations, which make
[Microcontroller]
How to use PC14 and PC15 in STM32
In the pinout diagram of the STM32 data sheet, you can see that PC14 and OSC32_IN share a pin, and PC15 and OSC32_OUT share a pin. Their usage is as follows:   When LSE (low-speed external clock signal) is turned on, the functions of these two common pins are OSC32_IN and OSC32_OUT. When LSE (low-speed external cl
[Microcontroller]
Several notes on STM32
1. Connect a 100nF capacitor between each set of VDD and VSS pins. The closer to the pins, the better. VDD3 needs to be connected in parallel with a 4.7μF capacitor. 2. Connect a 10nF capacitor and a 1μF capacitor between VDDA and VSSA; use the same method between VREF±. 3. During power-on and normal operation, a ma
[Microcontroller]
stm32.cube (ten) - the structure of a single HAL module
1. Interface Function For Linux drivers, the basic operation functions are Open, Close, Read, Write, and Ioctrl, which are a set of standardized interfaces for operating peripherals at the OS driver layer. For the lower-level hardware abstraction layer, the upper-level Open and Close mean initialization and deinitiali
[Microcontroller]
STM32 simulates I2C program
/*******************************************************************************   Test platform: STM32F103ZET6 minimum system *******************************************************************************/ static void i2cDelay() {     volatile int i = 7;     while (i)     i--; } // During the SCL high level period
[Microcontroller]
Detailed explanation of STM32_NVIC registers
In MDK, the registers related to NVIC are defined as follows:   typedef struct   {         vu32 ISER ; //2 32-bit interrupt enable registers correspond to 60 maskable interrupts       u32 RESERVED0 ;               vu32 ICER ; //2 32-bit interrupt disable registers correspond to 60 maskable interrupts       u32 RSERVED
[Microcontroller]
Detailed explanation of STM32_NVIC registers
STM32 GPIO Application Notes
1                      The input and output pins of STM32 have the following 8 possible configurations: (4 inputs + 2 outputs + 2 multiplexed outputs) ①Floating  input_IN_FLOATING ②With  pull-up input_IPU    ③With  pull-down input_IPD                      ④Analog  input_AIN ⑤Open  drain output_OUT_OD         
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号