Hi all ;

First of all this is my first message for this board. I will really wonder if i'll find an answer for my problem.

My problem is that ;

I want to control a one input of pic , with a limited time pressed .

Means,

if i pressed one input ; 1 output will be high , while button pressed , pic will count pressed time for preset time over. (for example 5 sn ) .

After time over , the output will be low .

If button still pressed over 5sn , the output will not be changed . (left low)

i couldn't make an idea about how i can do that . is there a code like that ?

Please help