> Usually, the highs are fixed in length and the lows are one of two > lengths. They are the one's and zero's. Sometimes lows are fixed & > highs change. > Create a bit banging serial routine that does them 8 bits at a time but > instead of just highs & lows, you're encoding the short & long marks. > Also, remember that you'll have to do the space between pulse trains & > send the whole sequence at least twice for the equipment to recognise it > as valid data. Do you get what I mean? Hope this helps. :-) Also IR codes have a preamble of "sync" bits that let the receiver auto gain circuitry stabalize. All the codes I've seen also contain some sort of checksum because the bit error rate is assumed to be significant. The real payload data is somewhere in the middle of a burst and might be tricky to spot. You need to look at several different burst. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu