Quote Originally Posted by a_critchlow
ive figured out the encoded part but i cant get the decoded part into my head:
Don't bother. If you do not understand this code, there are many other codes doing the same thing. Or better, create your own.

The idea is this: if you have to send 0 then in manchester you will send 01 pair. If you have to send 1 then in manchester you will send 10 pair.

So, for the byte

1 0 0 1 1 0 0 1

the result would be:

10 01 01 10 10 01 01 10

Is it clear now? You can simply do an if-then-else sub routine for the encoder and also the same for the decoder (in reverse of course).

As Melanie stated, a search will reveal much more. This case is trivial by now...

Ioannis