Difference between revisions of "STM32 Timers"

From Stm32World Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
To be added
 
To be added
 +
 +
== How to find the documentation ==
 +
 +
As mentioned elsewhere, [[ST]] manufacture an incredible number of different [[STM32]] [[MCU]]s.  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 [https://www.st.com/resource/en/datasheet/stm32f103c8.pdf datasheet] for the [[STM32F103]] [[MCU]], we will find the following on the very first page (Features):
 +
 +
[[File:STM32F103 Features Timers.png|400px]]
 +
 +
In section 2.3.15 we will find the following:
 +
 +
[[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 12: 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:

  1. the datasheet
  2. 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):

STM32F103 Features Timers.png

In section 2.3.15 we will find the following:

STM32F103 Timers and watchdogs.png

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.

Miscellaneous Links