I am currently planning a laser frequency offset lock in the MHz regime, for which I would like to use the Stabilizer, building on top of the dual-iir firmware.
The STM32H743 has multiple timers integrated, but its functionality is not that straight forward to understand. So far I only have a very rough sketch on how the microcontroller could be used to measure a laser beat frequency.
On the High-resolution timer a DMA can be triggered by an external event to read out the clock. Using the beat signal as an external event for the DMA clock readout, the period of the beat could be captured.
The same could be done with the advanced control timers and general purpose timers. Alternatively, here an external event could be used to count the clock (inverting the measurement principle). The clock count could be captured with DMA at timed intervals, recording the cycles of the beat signal.
This is only a sketch and since the microcontroller is quite complex, anything I wrote could be wrong.
The beat signal would have to be fed into the microcontroller. For the HRTimer pins PB7 and PG11 could be used, which lead to the J3 EEM connector and support HRTIM_EEVx which is needed for hrtim_evtx triggers. The list of the other timers is larger, I haven't looked at the possible pinouts yet.
I'm happy about any comments on this idea or hints on how to realize this. Or alternative ideas, which are easier to implement.