Bit 0 CEN: Enable counter
0: disable the counter;
1: Enable the counter.
Note: After the software sets the CEN bit, the external clock, gate mode and encoder mode can work. However, the trigger mode can
The CEN bit is automatically set by hardware.
(6) TIMX_PSCR prescaler register
Bit 7:0 PSC[15:7]: The upper 8 bits of the prescaler value
PSC[7:0]: The lower 8 bits of the prescaler
The prescaler is used to divide the frequency of CK_PSC.
The counter clock frequency (fCK_CNT) is equal to fCK_PSC/(PSCR[15:0]+1).
PSCR contains the value that is currently loaded into the prescaler register when an update event occurs (an update event includes a counter being
The UG bit of TIM_EGR is cleared to 0 or is cleared to 0 by the slave controller operating in reset mode). This means that an update event must be generated in order for the new value to take effect.
Previous article:STM8SF903K3T6 Timer 1 input capture
Next article:STM8S: Debugging is normal, but burning program is not running normally
Recommended ReadingLatest update time:2024-11-15 17:06
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
- MSP430F5529&LCD1602 Program
- Ultra-wideband technology: the nemesis of shadows and blind spots in wireless technology
- RF Basics - Professional Terminology
- MSP430 MCU Example 12-4X4 Matrix Keyboard Key Value Display
- Qorvo Online Design Conference-The new Wi-Fi 6 standard is changing the connectivity environment
- BLDC back EMF is a bit weird
- How do I set the impedance of the differential line in ALTIUM19?
- EEWORLD University Hall----Live Replay: Introduction to Keysight's New Optical Communication Test Solution
- A complete list of filter circuits, save it for future use!
- How to choose FPGA development board