Urgent help. Need to remap signal from TIMx_CH3 to TIMx_CH1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 7:10 AM
to be migrated, sourceId: 31551:697285D7-A9CA-445D-B16C-F23BF0E3B1A3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 8:40 AM
Might ''Sir'' and ''Urgent'' together - negatively impact your quest?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 8: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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 1: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).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 2: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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 2: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. :\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 2: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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 3:39 PM
I digged into the reference manual again. Found this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-14 5: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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-15 4: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).