2014-06-03 10:00 PM
2014-06-04 04:28 AM
I would do this differently. I don't think you need the enable/disable, but the M0 is not my thing.
You'd be better to let TIM2 free run, and take time stamps from TIM2->CNT at entry to the handler, you then subtract the time of last entry, from that of the current, and you'd have the time elapsed between the two. Are you sure your EXTI is not getting a bouncing signal from a key press or something?2014-06-04 07:57 AM
Thanks for your input.
Input signal is a square wave coming from a function generator. So no bouncing in input. I assumed ''PCLK_Frequency'' is the clock source of TIM2. Is it correct?2016-03-11 06:42 AM
2016-03-11 08:13 AM
You have created this huge web of unnecessary complexity and interrelationship. Please discuss this with your advisors or professors.
As I believe I've already explained, this is not how this works.To revisit:The timer triggers the ADC directly, the ADC transfers each sample via DMA, all eight and then when it calls the DMA interrupt the data is in the array you asked it to put the data in. There is only one interrupt, and neither the TIM or ADC generate it.A timer triggered ADC is not in continuous mode.Please do not hijack threads with off topic questions.