2018-10-23 07:09 AM
For example timer A: is it low-speed (APB1) 'APB1 timer clock' or high-speed APB2 'APB2 timer clock'?
I read the timer and RCC sections but could not figure this out...
Can you tell me where this is documented?
Thanks!
Solved! Go to Solution.
2018-10-23 08:34 AM
Other STM32 parts, where the RM covers a few dozen varied ICs, you get referred to the DS
but also
2018-10-23 07:28 AM
There is typical a Clock Tree diagram, a diagram of which TIM/peripherals are on which bus, and the RCC_APBxENR registers also infer which TIM is on each bus based on which bus clock that needs to be enabled.
2018-10-23 07:57 AM
What is timer A?
JW
2018-10-23 08:06 AM
Arbitrary timer A... WHERE is diagram showing which peripheral is on which clock tree?
I just found the timer clock sources in tabular form in the datasheet (not in reference manual where I searched).
Next stop - is a #define for the timer clock frequency output by the CubeMX tool for each timer?
2018-10-23 08:27 AM
ST likes diagrams for the kidz that can't read good and stuff, here from a Reference Manual for an arbitrary STM32 part.
2018-10-23 08:34 AM
Other STM32 parts, where the RM covers a few dozen varied ICs, you get referred to the DS
but also
2018-10-23 08:36 AM
Yup, missed that bit in the Device Overview block diagram...
2018-10-23 09:10 AM
Note, that these are SoC, i.e. IP modules thrown relatively loosely together, and sewn by a fabric of buses and interconnections. Now the documentation follows this pattern, i.e. the IP modules (e.g. timer, SPI, UART, etc.) have their own chapter, but the interconnections are documented poorly and pieces of information of this character are scattered around the RM. In some families' RMs there is an Interconnection chapter, but that usually leaves lots of these information out too.
In other words, yes, you ought to read the manual back to back (or at least all chapters which are related to modules you are using) (oh, yes, the dreaded reading!)
JW
2018-10-23 09:26 AM
CubeMX can show the clocks tree very nicely, if you use it.
/* Some time ago there was a request to display the clock and frequency info in CubeMx GUI for timers, to save users time from digging in the manuals ... but given the overall situation, I'm not holding my breath */
-- pa
2018-10-23 09:37 AM
Hi @Dave Nadler ,
You may have a look on "RCC_APB1ENR" and "RCC_APB2ENR" registers in the reference manual.
Example: "RCC_APB1ENR " register shows the peripherals connected to the APB1 bus (screenshot taken from STM32F2 RM).
Khouloud.