I've done it but it's not shareable (customer's code). Use the Capture hardware to find an edge, measure time until next edge. Quite simple, just keep grabbing the pulses as they come in. Andy At 08:34 AM 11/19/02 +0100, you wrote: >does anyone have c code for an ir receiver? > >i prefere c code over assembler, as this is more portable. i think i'm >gonna use a 16f628 or a 16f872 (eventually 16f84). > >in the end, i want to decode ir signals, coming from an integrated ir >receiver with ttl output to generate pulses on the pic's i/o pins, to use >an old tv remote to control electronic toys. > >thanks for your help! >tino > >tbw@gmx.ch > >-- >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 > > ------------------------------------------------------------------- Race Boats - andy@RC-Hydros.com http://www.RC-Hydros.com Airplanes - andy@FlyingHobbies.com http://www.FlyingHobbies.com Electronics - andy@MontanaDesign.com http://www.MontanaDesign.com ------------------------------------------------------------------- -- 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