AnsweredAssumed Answered

Precise Timer Project

Question asked by Ruben Sotolongo on Oct 16, 2017
Latest reply on Oct 16, 2017 by KIC8462852 EPIC204278916

Hey guys I'm new to the st family and I have a project I need some help with. I have two square wave pulses that come into the micro and i need to be able to measure the time in between the fall of the first pulse and rise of the second, the thing is that this time is as short as 400ns (200ns on a later project) and I have no earthly idea how to reliably measure that. Also I would need to get one or two adc samples (sample and hold?) somewhere in the pulse just to confirm that it went below a certain voltage.


I am a total rookie and would prefer to use the arduino IDE but i do know C code if that works better. I need help on getting started on this.


The chip I'm using is the STM32F103C8 and ive set it up with an usb boot loader and hooked it up to the Arduino IDE.