If you don't mind answering my question, I would be much obliged.
taz3m:
If i try my code from my first post, my outputs goes out automatically and i need to press my switch again(input), clearly knowing that areset has been performed..
What switch? How do you know it reset?
I ask this question again.