A cyclic timer program with input dependent condition

Hello
Post a timing diagram for your sketch to clarify the input to output behaiviour.
And describe this in simple words and very simple.