Jason wrote: > Interesting. That would save the trouble of figuring out how to decode a > bitstream. > > How would I time the pulse though? Is this where the CCP module comes in? Yes. Or a timing loop polling the I/R input pin. Or use an LM3915 linear bar graph LED driver, current source and timing cap to create a ramp that starts at the leading edge of the pulse, and holds at the end, and the 3915 selects an output based on the ramp level=width. There are dozens of ways to do this. I'll not be doing your homework for you. R -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist