(STM32F105C8, STM32CubeIDE 1.9.0, MacOS 11.6.5)
Using STM32CubeIDE, how do I can't get TIM3 to tick/count when TIM2 overflows.
(TIM2 does count up)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-03 7:12 PM
TIM2:
Clock source: Internal
Master/Slave Mode: Disabled (Trigger input not delayed)
Trigger Event Selection: Update Event
TIM3:
Slave Mode: Trigger Mode
Trigger Source: ITR1
TIM2 counts up like it should, but TIM3 doesn't count the over flow, but has increasing numbers that don't make sense.
What am I doing wrong?
All the example I could find don't use the IDE/MX and I couldn't figure out how to map the registers to the HAL names.
Thanks in advance!
- Labels:
-
STM32CubeIDE
-
STM32F1 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-03 7:44 PM
You want external clock mode 1, not trigger mode.
See "Using one timer as prescaler for another timer" in the reference manual.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-04 6:29 AM
Thank you, THANK YOU!!!
I was thinking external clock on a pin, not external to the timer, but internal to the F105.
