i never used it but if i remember correctly manchester code is very much
like regular binary code except that:
- each "0" is presented by two bits "10" (transition from high to low) and
- each "1" is presented by two bits "01" (transition from low to high).
so binary sequence 01101001
would look like 1001011001101001
when encoded.
this method is supposed to ensure alternations in long sequences
of same bit such as 000000 or 1111111.
with manchester code it is impossible to have more than two "0"s or two "1"s
side by side. if such scenario is detected, signal is considered faulty and
ignored. also if you had IR LEDs transmit sequence like
111111... they wouldn't last long.