2013-06-14 07:10 AM
to be migrated, sourceId: 31551:697285D7-A9CA-445D-B16C-F23BF0E3B1A3
2013-06-14 08:40 AM
Might ''Sir'' and ''Urgent'' together - negatively impact your quest?
2013-06-14 08:53 AM
Saying something is
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
to you is viewed poorly by thehttp://www.catb.org/esr/faqs/smart-questions.html#urgent
. Yes you could use the XOR, no I don't think setting them a Low GPIOs will work you'll need to bond the pins to ground. Are you trying to route TI1F_ED, T1FP1, T1FP2? Be more specific about the problem to be solved.2013-06-14 01:59 PM
Hello
We are not hackers, we are professionals :)I must configure timer 3 to PWM input mode to be able to calculate the PWM frequency and duty cycle of an PWM input signal. But the PCB designer routed the PWM input signal to the TIM3_CH3 pin. I think it must be routed to TIM3_CH1 or TIM3_CH2 to work. Acording to the reference manual the counter can only be synchronized by Filtered Timer Input 1 (TI1FP1) or Filtered Timer Input 2 (TI2FP2).2013-06-14 02:17 PM
But those answering the questions are.
Yeah, I can see the sync would be an issue, but CH1 pairs with CH2 in so much as CCR2 holds the snap shot for the opposite edge than CCR1. They are latching elements, not counters. The same thing works with the CH3/CH4 pairing with CCR3, and CCR4. I'm pretty sure CH3 could be used to measure period and duty.2013-06-14 02:25 PM
I found also this in the reference manual.
The PWM input mode can be used only with the TIMx_CH1/TIMx_CH2 signals due to the fact that onlyTI1FP1 and TI2FP2 are connected to the slave mode controller.I will try the XOR gate tomorrow. :\
2013-06-14 02:34 PM
If you can wire the pins to ground, you could jumper CH3 to CH1 too.
An BGA part would admittedly be a bit of a bugger.2013-06-14 03:39 PM
I digged into the reference manual again. Found this:
It looks like it is possible to drive the TIM3_CH1 and TIM3_CH2 pins low from within the MCU. Then I don't need to rewire all boards :)2013-06-14 05:13 PM
That would work for an F1, the F2/3/4 less so, you'd didn't state which part you were using.
Input Capture is not incumbered by the issues you mentioned for the PWM Input mode.2013-06-15 04:34 AM
I use a STM32F103.
Now I have tested the XOR solution. It works :)I set TIM3_CH1 and TIM3_CH2 low (GPIO_Mode_Out_PP).I also tested to set TIM3_CH1high to confirm that the XOR really uses the set levels. And the duty cycla was inverted (as it should).