Skip to main content
Associate II
July 29, 2025
Question

TIM2 Bus speed

  • July 29, 2025
  • 3 replies
  • 275 views

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

3 replies

Andrew Neil
Super User
July 29, 2025
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.
MarrkinhoAuthor
Associate II
July 29, 2025

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

Andrew Neil
Super User
July 29, 2025

@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.
waclawek.jan
Super User
July 29, 2025

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