Creating a 1KHz clock O/P

I was just a little concerned about using the programming pins as I/O as well.