jhugon / ascii-serial-com-c

C-code for ASCII-Serial-Com
https://jhugon.github.io/ascii-serial-com-c/
GNU General Public License v3.0
0 stars 0 forks source link

Comparator Tests for Pulse Counting #3

Open jhugon opened 2 years ago

jhugon commented 2 years ago

The idea is to use the comparator hooked up to the DAC to analyze the dark current behavior of a SiPM.

jhugon commented 2 years ago

It seems like a comparator interrupt will have to be used to increment the counter and input compare on a timer with either interrupt or DMA for pulse timing.

jhugon commented 2 years ago

It may be possible to clock a timer (counter) directly with the comparator output (possibly externally wired together). That would greatly simplify things. External clock modes 1/2 on TIM2/3?