Clock division of STM32

Publisher:stampieLatest update time:2018-08-17 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

TIM_TimeBaseStructure.TIM_ClockDivision ;//Clock division

TIMx_CCMR1 Register

Fck_int is the input frequency of the timer (TIMxCLK), which is generally 72Mhz, and is determined by the setting of CKD[1:0] of TIMx_CR1. If CKD[1:0] is set to 00, then = . The N value is the filter length. For example, suppose IC1F[3:0]=0011, and set IC1 to be mapped to channel 1, and it is a rising edge trigger. When the rising edge is captured, the level of channel 1 is continuously sampled 8 times at a frequency of. If they are all high levels, it means that it is indeed a valid trigger, and the input capture interrupt will be triggered (if it is turned on). In this way, pulse signals with a high-level pulse width less than 8 sampling cycles can be filtered out, thereby achieving the filtering effect. {From the Zhengdian Atom Manual}




Keywords:STM32 Reference address:Clock division of STM32

Previous article:STM32 study notes: basic settings of general timer
Next article:STM32 input capture pulse width and frequency calculation

Recommended ReadingLatest update time:2024-11-16 22:26

A problem that bothered me for two days: stm32 serial communication
Problem description: The program is "same", there is no problem in compiling, but the functions cannot be implemented and cannot be echoed. Explanation: USART1 baud rate setting failed But the USART1 initialization routine is "ok". 1. My friend thinks there is something wrong with the way I created my project, but
[Microcontroller]
A problem that bothered me for two days: stm32 serial communication
STM32 interrupt priority grouping concept
When performing STM32f103, the concept of interrupt grouping  Cortex-M3 allows fewer interrupt sources to use fewer register bits to specify the priority of the interrupt source, so STM32 reduces the register bits for specifying interrupt priority to 4 bits. The grouping of these 4 register bits is as follows: Group 0
[Microcontroller]
STM32 bit-band operation
Bit operation is to read and write a bit individually, which is very common in 51 MCU. In 51 MCU, the keyword sbit is used to implement bit definition, while in STM32, the operation of a bit is implemented by accessing the address of the bit band alias area. For example, the following operations can be implemented i
[Microcontroller]
STM32 bit-band operation
51. Comparison of AVR, PIC, MSP430, STM32 microcontrollers
51. Comparison of AVR, PIC, MSP430, STM32: common models, features, advantages and disadvantages, compilation software, download software, and download methods.          Traditional 8051: suitable for beginners, easy to use, average price (in terms of cost performance).   Disadvantages: easy to decrypt (traditional 51
[Microcontroller]
Problems encountered in the actual application of stm32
1. Don't trust the internal IO pull-up and pull-down of stm32 too much. If necessary, connect pull-down resistors externally. 2. When using the JTAG IO port as a normal IO port, you must first disable JTAG. That is, when using PB3, PB4, PA13, PA14, and PA15, you must first disable JTAG. In the library function, ca
[Microcontroller]
Problems encountered in the actual application of stm32
Calculation and setting of STM32 PWM waveform
When SYSCLK is equal to 72M, APB1 is equal to 36M, and APB2 is equal to 72M, the timer clock is 72M. Note this sentence in the figure: If APB1/APB2 prescaler = 1, the frequency remains unchanged, otherwise the frequency is x2. If at this time, APB1 is divided by 2, the external clock of PCLK1 is 36M, and the timer clo
[Microcontroller]
Cause of Error 2 when using FATFSW to read and write SD in STM32
Recently, when I was writing data to the SD card using STM32 in my latest project, the data was written normally at first, but an error occurred after a while, error code 2. After consulting the official documentation of FATFS, the following is given: There are 4 possible situations in total. I tried various solutio
[Microcontroller]
Cause of Error 2 when using FATFSW to read and write SD in STM32
Reasons and solutions for STM32RTC not working after power failure after installing battery
   When I was debugging the STM32 RTC, I used the internal LSI crystal oscillator as the RTC crystal oscillator source and found two problems:     First, since the LSI crystal oscillator frequency is around 40KHZ, it actually fluctuates between 30~60KHZ, resulting in inaccurate timing, basically with a deviation of ab
[Microcontroller]
Reasons and solutions for STM32RTC not working after power failure after installing battery
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号