> Standard UART communication isn't very well suited > for IR comm at all. The possibility of a long sequence > of "0" or "1" without any level shift can mess up things > more or less depending on what type of receiver used. > > Better to use "pulses" of different length to represent > "start", "one", "zero" and maybe "stop" bits. A kind > of PWM. for inspiration: take a look at the various IR protocols (RC5, sharp, IRDA etc). Most use either the pulse length the or pause-length to encode a combined data/clock. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads