Skip to main content
RAJA90
Visitor II
August 20, 2026
Question

Dual SiPM Peak Detect and Coincidence Timing on STM32F446RE

  • August 20, 2026
  • 2 replies
  • 64 views

Hello everyone,

I am working on a cosmic muon detector project using two SiPM detectors and an STM32F446RE Nucleo board.

My circuit holds the fast SiPM pulse for 20 µs. The two analog signals are connected to ADC Channel 0 (PA0) and ADC Channel 1 (PA1).

What I want to do:

  1. Time Difference ($\Delta t$): Measure the exact arrival time between both detector pulses to check if it is a real muon (coincidence window).

  2. ADC Measurement: Read both peak voltages at the same time and convert them to mV.

  3. Serial Output: Print the time difference ($\Delta t$), raw ADC values, and mV values to the Serial Monitor via UART.

My questions:

  1. What is the best way to configure the STM32 timer (Input Capture) to measure the small time difference between the two pulses?

  2. Should I use Dual Simultaneous ADC mode to sample both channels at the exact same time?

  3. How should I set up the code in STM32CubeIDE so the serial output does not miss fast events?

Any simple example code or setup advice would be very helpful.

Thank you!

2 replies

MasterT
Lead II
August 20, 2026

FYI, CubeMX has examples for each peripheral: ADC, TIM, UART.  Run and study them separately, after combine.

Associate II
August 20, 2026

Seperated measurement could be good way to do the pulse detection. Sending the Pulse start timer receiving the pulse and end the timer.Serial terminal with printf command could be possible for message sending out