1. Two 32-bit timer/counters, each with a programmable 32-bit prescaler.
2. With up to 4 capture channels, the instantaneous value of the timer can be obtained when the input signal jumps, and the capture event can also be selected to generate an interrupt.
3.4 32-bit match registers. There are three actions when matching: A. The timer continues to work when matching, and an interrupt can be generated; B. Stop the timer when matching, and an interrupt can be generated; C. Reset the timer when matching, and an interrupt can be generated.
4.4 The external outputs corresponding to the match registers have the following four outputs when matching: A is set to low level when matching, B is set to high level when matching; C is flipped when matching; D is no action when matching.
The clock source of the timer is PCLK, and the workflow is as follows:
1. The prescaler inside the timer divides the timer clock source;
2. After frequency division, the output clock is the clock source of the counter inside the timer; therefore, the prescaler plays the role of converting the clock frequency;
3. The count value is constantly compared with the match register. When the two are equal, a match event occurs, and then the corresponding operation is performed - an interrupt is generated, the match output pin (MAT) outputs a specified signal, etc.
4. When a valid edge appears on the capture pin, the timer will save the current count value to the capture register and can also generate an interrupt.
Therefore, we can see that the timer in ARM is mainly composed of three parts: counter part, matching function part, and capture function part. Therefore, the registers are also divided into basic register group, matching function register group and capture function register group.
The basic register group is mainly for the basic counter function, including the interrupt flag register IR, the timer control register TCR, the timer counter TC, the prescaler register PR, and the prescaler counter PC.
The match register group is mainly for the matching function of the timer, including: match registers MR0-3, match control register MCR and external match register EMR.
The capture function register group is for the capture function of the timer, including: capture register and capture control register. The capture register is used to set the capture signal. When a capture event occurs, the count value of the timer is saved in the capture register.
Previous article:STM32 timer brief introduction_1
Next article:Brief analysis of the process of Arm Linux kernel transplantation and system initialization Part 2
Recommended ReadingLatest update time:2024-11-16 13:24
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Excellent electronic design and product design materials 1
- [GD32L233C-START Review] Part 1: Any surprises after unboxing?
- FAQ_About BlueNRG-2 port retention in low power mode
- Can the system be added with python3.7
- [TI Recommended Course] #TI Robot System Learning Kit (TI-RSLK) Upgraded Version#
- A batch of KSZ8041NLI-TR Ethernet transceiver chips are available.
- GD32E230C finally downloaded and burned successfully
- MSP430 MCU general I/O port settings sharing
- Using PWM technology to build a high performance flow transmitter
- Notepad Editor - Verilog Code Snippets and Syntax Checker