Difference between revisions of "STM32 Timers"
(One intermediate revision by the same user not shown) | |||
Line 19: | Line 19: | ||
[[File:STM32F103 Timers and watchdogs.png|600px]] | [[File:STM32F103 Timers and watchdogs.png|600px]] | ||
+ | |||
+ | In other words, this particular [[MCU]] has got 1 advanced timer and 3 general purpose timers (the advanced timer just got more features - it _can_ act exactly like a general purpose timer if these advanced features are not needed. | ||
== Basic Timer Operation == | == Basic Timer Operation == | ||
Line 27: | Line 29: | ||
See [[STM32 Pulse Width Modulation]]. | See [[STM32 Pulse Width Modulation]]. | ||
+ | |||
+ | == Rotary Encoder == | ||
+ | |||
+ | See [[STM32 Rotary Encoder]]. | ||
== Miscellaneous Links == | == Miscellaneous Links == | ||
* [https://www.st.com/resource/en/application_note/dm00042534-stm32-crossseries-timer-overview-stmicroelectronics.pdf AN4013 STM32 cross-series timer overview] | * [https://www.st.com/resource/en/application_note/dm00042534-stm32-crossseries-timer-overview-stmicroelectronics.pdf AN4013 STM32 cross-series timer overview] |
Latest revision as of 05:22, 12 September 2021
What is a timer?
To be added
How to find the documentation
As mentioned elsewhere, ST manufacture an incredible number of different STM32 MCUs. It might appear hard to find the information about the one specific MCU one is working on. There are in principle _two_ sources of documentation:
- the datasheet
- the reference manual
Each STM32 MCU have a datasheet, which always provide an overview of the available timers for that specific MCU, and a reference manual which provide all the details. If we look at the datasheet for the STM32F103 MCU, we will find the following on the very first page (Features):
In section 2.3.15 we will find the following:
In other words, this particular MCU has got 1 advanced timer and 3 general purpose timers (the advanced timer just got more features - it _can_ act exactly like a general purpose timer if these advanced features are not needed.
Basic Timer Operation
To be added
Pulse Width Modulation
See STM32 Pulse Width Modulation.
Rotary Encoder
See STM32 Rotary Encoder.