2018-05-07 11:54 AM
Hello,
I have one input channel for timer. I notice PA6 either for TIM3-CH1 or TIM13-CH1. So it is possible to map pin for both of timers (3 and 13). if I can do it, how to set them?
Regards,
2018-05-07 12:06 PM
it is possible to map pin for both of timers
Unless it's a 'F1xx, no.
JW
2018-05-07 02:10 PM
I need one input signal for two timers for different task. I am using f429zi. Do you have some suggestion?
2018-05-07 02:14 PM
Easy three steps:
1. Assign two pins, one for each of the two timers.
2. Wire the two pins together
3. Sit back and enjoy your work.
2018-05-07 02:33 PM
I know I can use 2 pins for this features, but I just want to save one pin for that, and also it looks 2 resources now even 2 pins comes from the same resource. one of timer will do slow work and check frequency features including frequency, pulse width, another timer is high resolution timer for different test task, when frequency disappears slow timer will issue a error flag and let high resolution timer stop test.
I can use exti_gpio to have trigger event for this digital input pin even I connect it to one of the timer, external frequency is low, something 50 to 60 Hz, so is it possible to use exti event to estimate pulse width?
Regards,
2018-05-07 02:53 PM
In TIM3, you could use the CH1 as source for TRGO (by setting TIM3_CR2.MMS=0b011), and then you'll have one edge of that signal available at some other timer as TRGI, if your STM32 model (which you still did not tell us) has such a link (IMO most of them have).
This may or may not be suitable for your purpose - it's upon you to judge this.
JW
2018-05-07 02:55 PM
Hello,
I forget my model, NUCLEO-F429ZI
2018-05-07 04:07 PM
Hard to tell, as you didn't specify your design environment.
I think it is less helpful to ask people how to do a specific thing. Instead, tell people your goal, and how you intend to achieve it. That allows people to offer you alternative solutions that may get to your goal faster.