Skip to main content
Associate II
June 21, 2024
Question

systick timer configuration in microsecond for stm32c031c6 MCU

  • June 21, 2024
  • 2 replies
  • 1411 views

please provide me the information for how to configure systick in microsecond.

2 replies

waclawek.jan
Super User
June 21, 2024

You mean, running the SysTick *interrupt* at a MHz rate? It's a bad idea.

Instead, you can run a timer with prescaler set so that is counter increments at a MHz rate, you can treat that counter (i.e. TIMx_CNT) as the SysTick counting variable (taking into mind that the timer may be 16-bit).

JW

Tesla DeLorean
Guru
June 21, 2024

At 1 MHz the only thing the MCU would do is enter/exit the SysTick_Handler continously.

Find another method to achieve whatever you're trying to do.

A TIM clocking at 1 MHz, or higher, can count off time in micro-seconds or better.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
June 22, 2024
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..