Detecting level in a Pulse Train
The minimum level time (i.e. minimum of L and H) must be greater than the sampling period. This way, there is no possibility for a pulse to be missed.

So, $T_s &lt; \rm{min}(L,H)$.