Hi all,
I am writing a program to capture random pulses (muon pulses from cosmic rays) from four high-speed comparators (a TLV3501), input into a Teensy 4.1. The pulses arrive at random time intervals at an event rate of ~2 counts per second, and pulse width in the range of 50ns - 500ns. I am using FreqMeasureMulti, and it is measuring the pulse width quite accurately. My next task it to timestamp the rising edge (or the falling edge, either will work) of each and all of the pulses. In a thread from 2021 (https://forum.pjrc.com/index.php?threads/t4-isr-handling-confusions.68470/#post-291546), Paul Stoffregen said,
"...using FreqMeasureMulti...uses timer hardware [and] captures a timestamp at the moment the pulse happens, regardless of interrupt latency."
My question is, how can I access that timestamp? Does the FreqMeasureMulti library expose it somewhere? (I looked, but didn't see anything.) Or is there some other way to obtain that value?
Thanks in advance!
--jIyajbe
I am writing a program to capture random pulses (muon pulses from cosmic rays) from four high-speed comparators (a TLV3501), input into a Teensy 4.1. The pulses arrive at random time intervals at an event rate of ~2 counts per second, and pulse width in the range of 50ns - 500ns. I am using FreqMeasureMulti, and it is measuring the pulse width quite accurately. My next task it to timestamp the rising edge (or the falling edge, either will work) of each and all of the pulses. In a thread from 2021 (https://forum.pjrc.com/index.php?threads/t4-isr-handling-confusions.68470/#post-291546), Paul Stoffregen said,
"...using FreqMeasureMulti...uses timer hardware [and] captures a timestamp at the moment the pulse happens, regardless of interrupt latency."
My question is, how can I access that timestamp? Does the FreqMeasureMulti library expose it somewhere? (I looked, but didn't see anything.) Or is there some other way to obtain that value?
Thanks in advance!
--jIyajbe