Hello all / Melanie

I found this on the internet hope this also helps all.

Manchester encoding can be done in PBP nice and easy:
From: Ioannis Kyriakidis (I presume)

For d=0 TO 7
IF v.0[d]=0 Then
encoded.0[d*2]=0
encoded.0[d*2+1]=1
Else
encoded.0[d*2]=1
encoded.0[d*2+1]=0
EndIF
Next

d: number of bits to encode (8 bits)
v: byte to BE encoded
encoded: WORD sized variable holding the encoded
byte v.

Note that the encoded value is double size always.

Use the above lines as subroutine to encode a byte before transmission