Hi,
how can i convert continous pulse waveform(combination of '0'and '1's)into
series of bits like example:1000100101....(combination of '0'and '1's) depending upon pulse waveform .that is if pulse is logic high,low,low,low,high then i should get output as 10001.and how can we acheive reverse also?
Thanks.
where do you get the timing from? Is there a clock signal?
Without a clock signal you need something like a "frame sync".
Look at UART: STARTBIT=LOW/ 8 data bits / STOPBIT=HIGH.
With the "known" START and STOP bits it´s possible to detect a "frame". In this case the frame is 10 bits wide.
Without clock and without some included "sync" bits: I´d say it´s about impossible. --> imagine a series of one million "1", how can you be surer this are not 999,999 pieces of "1"?