Timer in CTC mode to generate 1MHz pulse

You might also want to look at this material about synchronizing the timers.