This short video introduces timer input capture. Visit book website for more information: web.eece.maine.edu/~zhu/book
Пікірлер: 24
@Sencires2 жыл бұрын
Dr. Yifeng Zhu, thank you very much for your content!!! Our Professor does his class accordingly to your Books and your Videos are extremely helpful!
@embeddedsystemswitharmcort90512 жыл бұрын
Glad to know that.
@mohaarhly2950 Жыл бұрын
Dr. Yifeng Zhu i thank you from all my soul
@HansBaier Жыл бұрын
Very well explained 👍🏻
@skyhackerfpv7104 Жыл бұрын
Is this much quicker or more accurate than just using micros() at the start of a regular interrupt and comparing it to the previous micros()? I'm trying to compare signals that are up to 100 micros apart which is working about 95% of the time. Wondering if using the input capture interrupt would help or if I should try moving my project from and Uno to a Due. Thank you!
@coderhex16754 жыл бұрын
it would be awesome next video about watch dog timer implementation. You are my time savior. By the way, ı am translating your some videos into Turkish text to refer to when i forget the some points. :-)
@embeddedsystemswitharmcort90514 жыл бұрын
Did you post your Turkish text anywhere online? It will be great if you can share!
@coderhex16754 жыл бұрын
@@embeddedsystemswitharmcort9051 I didn't post them anywhere online. I translated 16_Volatile Variables.odt, 12_System Timer.docx, 11_External Interrupts (EXTI).docx, 10_Interrupt Enable & Interrupt Priority.docx, 9_Interrupts.docx into Turkish as sentence by sentence. If you would like to see them ı can share with you.
@embeddedsystemswitharmcort90512 жыл бұрын
@@coderhex1675 I would love to see them. Could you please share?
@coderhex16752 жыл бұрын
@@embeddedsystemswitharmcort9051 share your email address with me
@MahdiMohammadi02 жыл бұрын
Thank you for the lecture, Is there a mode, in which the timer starts counting as soon as an external event happens, and interrupts when the counter is overflowed? For example in order to acquire N data samples from ADC after the rising edge of a trigger signal occurred?
@embeddedsystemswitharmcort90512 жыл бұрын
Hi, Mahdi, you can use EXTI to detect the tiger signal. In the EXTI interrupt handler, you can enable a timer. You can use the timer interrupt handler to perform ADC sampling. More efficiently, you can directly use the timer trigger output as the trigger input of ADC (so that there is no software involved for triggering ADC.)
@tanyagachovska99823 жыл бұрын
Thank you for the lecture!!! It is better with your voice.
@embeddedsystemswitharmcort90513 жыл бұрын
Glad you think so!
@Sencires2 жыл бұрын
I also think that your voice is better, its easier to follow/understand
@dhruslab9563 Жыл бұрын
Is it also possible to capture both rising edge and falling edge to calculate the pulse width of the signal , let's say to measure the pulse width of drone receivers?
@embeddedsystemswitharmcort9051 Жыл бұрын
Yes, it can be programmed to capture both edges.
@dhruslab9563 Жыл бұрын
@@embeddedsystemswitharmcort9051 thank you so much sir, could you please cover , how to measure both the edges in your video.
@Dragonwrath07123 жыл бұрын
What is the external signal here? GPIO input capture? If so which particular pins I/P?
@embeddedsystemswitharmcort90513 жыл бұрын
Signal external to the microcontroller, such as the output from a sensor
@Dragonwrath07123 жыл бұрын
@@embeddedsystemswitharmcort9051 yeah but what if there are multiple input pins which pins edge will the timer read?
@embeddedsystemswitharmcort90513 жыл бұрын
If a timer is enabled to capture multiple external inputs (we need to use multiple pins, with an input signal on one input pin), the timer interrupt is triggered whenever an event takes place on any input pin. In the timer interrupt handler, software should check the event status register to find which channel (or i.e., which input pin) captures an external event.
@switcher3545 Жыл бұрын
Hello doctor, does ARR affect the timer resolution?
@embeddedsystemswitharmcort9051 Жыл бұрын
Timer's resolution or accuracy is determined by the oscillator's accuracy. ARR will impact the period of a timer's output signal.