Manchester encoding/decoding?
I'm using TLP434A and RLP434.
Are you doing this in software or hardware?
Encoding a manchester signal is very easy. To encode a NRZ signal to a manchester signal, you simply xor the NRZ signal with a clock running 2 times the baud clock.
For example:
00 00 00 11 11 00 00 --->NRZ data
01 01 01 01 01 01 01 --->2x Baud clock
01 01 01 10 10 01 01 --->Manchester data
Decoding a Manchester signal is more complicated but still not too hard. You'll also need a clock running 2x the baud clock. From a state machine point of view
case(STATE)
A: NEXT_STATE = Input ? A : B;
B: NEXT_STATE = Input ? A : C;
C: NEXT_STATE = Input ? D : C;
D: NEXT_STATE = Input ? A : C;
endcase
While you are in state A or B the decoded data is a '1'. While you are in state C or D the decoded data is a '0'.
All of the above assumes a falling edge is a '1' and a rising edge is a '0'
