cancel
Showing results for 
Search instead for 
Did you mean: 

TIM2 Bus speed

Marrkinho
Associate II

Hi,

I have an stm32G0B1 that i'm working on. I want to use a timer "TIMER2" but the block diagram of the board doesn't not give the AP2B2 clock bus. I know with other boards is usually mentioned. Where do I go to look for it, as I have looked and I struggle to find it.

block diagram.png

4 REPLIES 4
Andrew Neil
Super User

Is this what you're looking for?

AndrewNeil_0-1753782107708.png

https://www.st.com/resource/en/reference_manual/rm0444-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf#page=161

via: https://www.st.com/en/microcontrollers-microprocessors/stm32g0b1vc.html#documentation

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Marrkinho
Associate II

Is it using HSI16? that's what  confuses me .

waclawek.jan
Super User

It uses whichever primary clock source you've selected for SYSCLK, divided by the AHB prescaler and the APB prescaler (and optionally multiplied by 2 if APB divider is 2 or higher).

JW


@Marrkinho wrote:

Is it using HSI16? 


Trace it through the diagram

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.