I’m trying to capture hi low pulse timing & save them in a binary form.
I have attached my drawing that how the pulse streams are coming. In every stream the timing is T & 2T length of pulses.
If the high pulse is 2T then the binary must be 11
If the high pulse is T then the binary must be 1
If the low pulse is 2T then the binary must be 00
If the low pulse is T then the binary must be 0
I want to arrange like above format. Any idea how to do. No need code just tell me the idea. Do not suggest capture modules. Want to do it from a general I/O pin with a timer.
Thanks
I have attached my drawing that how the pulse streams are coming. In every stream the timing is T & 2T length of pulses.
If the high pulse is 2T then the binary must be 11
If the high pulse is T then the binary must be 1
If the low pulse is 2T then the binary must be 00
If the low pulse is T then the binary must be 0
I want to arrange like above format. Any idea how to do. No need code just tell me the idea. Do not suggest capture modules. Want to do it from a general I/O pin with a timer.
Thanks