Unwanted shut down of outputs.

Yes an UNO R3 BOARD.. i removed my shield for trouble shooting purpose..

so as is now, my UNO board is without any shield at all and 1 LED is connected to pin 13, through a 1k resistor to ground..

Moreorless, it resets every 1 min or smetime less.

Please Note that i encountered this prob wen i was doing some other sketch.. see my first post.

For simplicity in troubleshooting, i change my circuit to a single led and watch my connected Led whch is blinks within a delay of 1000 ms..
Wen it resets you can see visually the blinking of my on board led connected to pin 13 n my led connected externally blinks just the same a wen as u press reset button.

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..

Taz ..