how can i have 2 phase with 180' shift and can change dyty and F inside cod?

hello how can i have 2 phase with 180' shift and can change dyty and F inside cod? with arduino uno timer 1