Hello all, I'm tinkering with a remote control transmitter and a Sharp IR receiver. I have the PIC successfully receiving data from the IR receiver. I had planned on using the Capture feature (to measure pulse width) of the 16F628. I've now got working code that uses the Capture feature, but I have now discovered that the remote TX that I'm using sends the data using biphase encoding. I've thought about this for a bit and have come to the (erroneous?) conclusion that the capture technique is probably not going to work. My question is, "what is the best way to decode biphase data?" Does anyone have an tips on doing it? I've Googled my fingers numb, but haven't found a "readable" piece of code that decodes biphase data. I'm somewhat stumped as to how best to do this, since rising/falling edges occur in the middle of the data bits. Any tips or advice would be greatly appreciated. michael brown "In the land of the blind, he who has one eye is king" -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics