one thing you can eliminate is a code problem [assuming code as posted] mine is has run for 24 hours+ without resetting

describe your setup including whether you leave the programmer attached when testing