Introduction - If you have any usage issues, please Google them yourself
AT89C51 microcontroller with a timer/counter 0 timing functions may constitute a simple square wave generator, to achieve a period of 2s of the square wave, and can be visually displayed on a virtual oscilloscope waveform.