Hi,

I've been trying to figure out the correct code to overlook a short pulse (~50ms) and only activate the program when it senses a longer pulse (500 ms).

It doesn't look like Pulsin will work. I've tried the following in various forms:

If PortB.1=1>500 then
High PortB.2
Endif

This may be completely wrong,but I had to try and it does compile without errors.

I haven't figured out "count" yet,I thought some version of that might work.

If someone could just "steer" me in the right direction,I think I could get it. Still learning.

Thanks