Say What? CLK: 0101010101 DATA: 0011110000 BI0L: 0110100101 There is always a transition in the middle of the bit period, 0->1 for a 0 and 1->0 for a 1. (Interesting thing about Bi-phase is it has an average DC component of 0 and works nicely with capacitive or transformer coupling.) Anyway, looks like XOR to me. And yes, if you are going to do it in hardware, care must be taken that the timing of your signals is correct. Robert Wuest, PE rob wrote: > > Simple XOR-ing does not work, because the detent rest postition of the > encoder is on the rising edge of one of the inputs, either the clock or > data. The encoder will be constantly glitching in one direction. > > Action should only be taken if the clock goes high, otherwise a change in > the data output should be completely ignored UNLESS the clock input is > high. (the clock output should be the output that is right in the middle > and set to low in the rest position rather that being on the rising edge) > > Rob > > ---------- > > From: Robert Wuest > > To: PICLIST@MITVMA.MIT.EDU > > Subject: Re: bi phase line coding > > Date: Sunday, March 19, 2000 8:50 AM > > > > Soon Lee wrote: > > > > > > Hi everyone > > > > > > Anyone have the source code for manchester line coding(bi phase) for > F84. > > > > > > regards > > > > > > soon lee > > > > Manchester encoding is simply the XOR of clock and data > > > > Robert Wuest, PE