well, if the above posters dont want to provide any insight, then I will.
#1. Go to 8052.com and learn how their projects are made.
#2. At the same site, study their instruction set.
#3. Get a computer with any port and connect the device (clock) to it.
#4. Write the program on the computer.
#5. Transfer the program to the chip.
Good luck.