Hello all, while we're on the subject, what should I use to decode the output of a 3-pin receiver? I've read that the Sony remotes use 48 pulses for a '1' and 24 pulses for a '0'. The pulses are fast (40kHz). This is only 125 PIC instructions @ 20MHz. I've seen some codes, but the PIC stops anything it's doing just to wait/receive IR(!) and I need the PIC doing other things while waiting/receiving IR. Should I use RB0/INT? Any other sugestions? Maybe it would be a good ocasion to use RA4/T0CKI. It could count the pulses during a given time. Best regards, Brusque ----------------------------------- Edson Brusque Research and Development C.I.Tronics Lighting Designers Ltda Blumenau - SC - Brazil www.citronics.com.br ----------------------------------- -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.