Skip to main content
ORaji.1
Associate
August 19, 2021
Question

Auto-Reload Register = 0

  • August 19, 2021
  • 3 replies
  • 3283 views

Good day, I'm using the stm32f103c8 on the bluepill board and I intend on running timer 2 (clocked at 72MHz) every cycle. Now with this clock, a cycle is 13.9ns. To make this happen, should the Auto-Reload (ARR) register of timer 2 be loaded with 0 so that it reloads every cycle?

It just looks weird to me but I want to clarify if my assumption is correct. Thank you​

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
August 19, 2021

You cannot set ARR to 0, the timer would not run. The highest frequency of timer is its input clock frequency / 2. Read the TIM chapter in RM.

JW

ORaji.1
ORaji.1Author
Associate
August 19, 2021

Thanks

Tesla DeLorean
Guru
August 19, 2021

For high speed clock output consider PA8 MCO pin.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..