Introduction - If you have any usage issues, please Google them yourself
AT89S51 microcontroller with have a " tick, tick, ..." alarm sound output from the P1.0 port to produce a frequency of 1KHz, according to the above diagram can see: 1KHZ square wave output from P1.0 0.2 seconds, followed by 0.2 seconds from the P1.0 output level signals, so the cycle continues, the result will sound the alarm that we need