Only problem there is that the maximum prescaler value for timer1 is 1:8, other than than that minor point its a great idea......or you can set prescaler to 1:256; load timer with 46004 (at each overflow) and you will get an overflow every 1000.0398 milliseconds. Set a variable to count up to 5, inside the IRH and you will have your 5 secs delay almost in the background.
Alberto
by Duane Benson
by Jake Hertz
by Jake Hertz