Posted on July 13, 2011 at 09:19I have a string of pulses coming in, and i want to measure the period of a pulse. So i have initialize the input capture for the timer, in my case TIM2 CH4. RCCIC_Configuration(); /* NVIC configuration */ N...
Posted on July 08, 2011 at 06:18I am trying to generate a single pulse using the TIM_SelectOnePulseMode() function in STM32f10x_tim.c source file. But I am not able to get the pulse. why? I am using TIM4 CH2... Any advice? int main(void) { TIM_C...
Posted on July 14, 2011 at 03:24can u elaborate? which timer registers are u referring to? the time between each pulse should be approximately values in ms. and what do you mean by computing a delta time?
Posted on July 11, 2011 at 04:33hi, i tried copy-and-paste your code to see if works, but i'm still not getting a pulse. and i received another reply from another user that I should enable AFIO and remap, so please see my code below: #include ''stm3...
Posted on July 11, 2011 at 04:22ok, now I have changed to TIM2 CH1 (PA0) which coincides with the wakeup. I have enabled my AFIO and re-mapped my TIM2 CH1, but I am still not getting it. Why? here's my code. // ***********************************...
Posted on July 08, 2011 at 10:13thanks! but erm, it didn't matter if i used ''single'' or ''repetitive'', there was still no output at my TIM4. And is the input capture mode necessary? since I just need to output pulses...