Creating a 1KHz clock O/P

If the input changes then all I have to do is change the U/D pin.