Help with writing to registers for 1Hz pwm and timer interrupt

Thank you, this looks like a better way to do it!