2024-08-28 01:47 AM
Hello,
STM32F103RB microcontrollers.
Why do TIM6 and TIM7 timers and its registers not define in CMSIS in stm32f103xb.h file (see Figure 1 below)?
Figure 1
Therefore, it is impossible to use this TIM6->ARR = 0x0001; instruction and similar to this instruction with registers of TIM6 and TIM7 timers.
Solved! Go to Solution.
2024-08-28 02:15 AM
Well, TIM6 and TIM7 are not defined because they are simply not present in the STM32F103xB. Only the High Densitity (F103xC/D/E) and XL Density (F103xF/G) devices contain TIM6 and TIM7.
Does it answer your question?
Regards
/Peter
2024-08-28 02:15 AM
Well, TIM6 and TIM7 are not defined because they are simply not present in the STM32F103xB. Only the High Densitity (F103xC/D/E) and XL Density (F103xF/G) devices contain TIM6 and TIM7.
Does it answer your question?
Regards
/Peter
2024-08-28 02:44 AM
Yes,
I see this in the datasheet of STM32F103x8, STM32F103xB microcontrollers in the Table 4 (see Figure 2 below).
Table 4 also shows that STM32F103xx have TIM1, 2, 3 and 4. TIM3 and TIM4 not included in RM0008 Reference manual. Why?
2024-08-28 03:05 AM
Hello @Mykola_Levun
the RM0008 is the reference manual for STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and
STM32F107xx. So, it describes all interfaces and APIs available on all those series. For the Specification of each model, you need to check the Datasheet. It gives info and details about a Few MCUs. So the details should be there.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-08-28 03:15 AM - edited 2024-08-28 03:16 AM
Hello,
The information is provided in the datasheet.
The device stm32f103xb is a 128kB of Flash device which is the medium-density.
As you can see in Table 3 from the datasheet, the two basic timers TIM6 and TIM7 are available only on High-density devices.
Hope it does answer your question.
2024-08-28 03:18 AM - edited 2024-08-28 03:21 AM
Hello @STTwo-32
That's understandable, but I want to know how to use TIM3 and TIM4 (description, registers, functional blocks and the like). But TIM3 and TIM4 did not include in RM0008 Reference manual. Why?
2024-08-28 03:22 AM - edited 2024-08-28 03:23 AM
@Mykola_Levun wrote:
but I want to know how to use TIM3 and TIM4 (description, registers, functional blocks and the like). But TIM3 and TIM4 did not include in RM0008 Reference manual. Why?
Sorry but you are talking about TIM6 and TIM7 which are not available and was explained why. TIM3 and TIM4 are available (see your post above)!
2024-08-28 03:28 AM
Yes, TIM3 and TIM4 are available, but why did TIM3 and TIM4 not include in RM0008 Reference manual.
2024-08-28 03:32 AM
They are available as General-purpose timers TIM2 to TIM5:
But that was not your original question. Please accept as solution the comment that answered your question.
2024-08-28 03:39 AM
Thanks for the explanation. I'm just learning English so I didn't pay attention to the word "to" between TIM2 and TIM5.