> I could use the external interrupt, so that every time there is a pulse
>I'd check a TMR. The problem I see there is that I have to set the
>interrupt to trigger on rising edge or falling edge, I can't do both. I
>don't want to mess with portB interrupt on change. I was thinking I
>could use the CCP module, but I don't really know how. I guess it would
>trigger when it receives a pulse from the IR module, then captures the
>value in the TMR. Then I could check the value of that against what my
>high and low timings should be, and go from there. Again I think I run
>into the rising/falling edge thing though. I'm really confused here. I'm
>sure that there is a solution somewhere, I just can't quite figure it
>out.
>
>If you have any ideas or suggestions, they will be appreciated!
>
>Thanks,
>
>Josh
>--
>A common mistake that people make when trying to design something
>completely foolproof is to underestimate the ingenuity of complete
>fools.
> -Douglas Adams
>
>--
>
http://www.piclist.com hint: To leave the PICList
>
piclist-unsubscribe-request
KILLspammitvma.mit.edu
>
>
>