2017-10-15 02:57 PM
Hello engineers,
iam worikn on one project and i want to sync timers. Please correct me if iam wrong but in block diagram is shown ITR as control signal for whole timer(so all channels ale controlled by one ITR signal). But ITR cannot be maped to each timer. I need to clock ADC and DAC by one pulse timers(ADC and DAC has different clocks and have to work in different time slots so i need two one pulse timers to control two timers for clock periph's). And because i did not find any table with possible options ive turned to you. Could you help me with my issue? Many thanks!
Solved! Go to Solution.
2017-10-15 03:54 PM
I don't quite understand what do you want to achieve, but it is possible establish master-slave connection from one particular master timer to several slave timers, see e.g. RM0351 10.3 Interconnection details - for example TIM1 as master can be source for trigger to TIM8, TIM2, TIM3, TIM4 and TIM15. Then if you look at TIMx_SMCR description in each respective timer chapter, you'll find a table TIMx internal trigger connection detailing which ITR belongs to which source, e.g. for TIM2, TIM3 and TIM4, trigger coming from TIM1 is conected to ITR0.
JW
2017-10-15 03:54 PM
I don't quite understand what do you want to achieve, but it is possible establish master-slave connection from one particular master timer to several slave timers, see e.g. RM0351 10.3 Interconnection details - for example TIM1 as master can be source for trigger to TIM8, TIM2, TIM3, TIM4 and TIM15. Then if you look at TIMx_SMCR description in each respective timer chapter, you'll find a table TIMx internal trigger connection detailing which ITR belongs to which source, e.g. for TIM2, TIM3 and TIM4, trigger coming from TIM1 is conected to ITR0.
JW
2017-10-15 11:49 PM
Hello Jan,
Many thanks for answer. This is exactly what i was looking for. Many thanks!
2017-10-16 04:59 AM
Hello Jan,
Could you please help me with another issue. Ive found that i can clock DAC by timer 15 but there is no mention in library either reference manual in section DAC. I use STM32L41KC. Those documents are really terrible!
EDIT: Solved.I will use ADC and DAC will be clocked by TIM2. Document is still terrible :\
2017-10-16 07:33 AM
STM32L41KC - one digit is missing
Which document are you talking about?
JW
2017-10-18 01:19 PM
Hello,
Sorry it is STM32L431KC and document is reference manual (RM0394). Ive solved the problem with synchronizing timers 1 and 2. But i dont know how to trigger TIM16 from COMP2. Any advice?
Many thanks
2017-10-20 06:24 AM
Sorry, I don't know. You may want to contact ST directly through the web support form.
JW