Interrupt function of timer0 shows that “temp_TH0” and “temp_TL0” are intermediate variables to accomplish initial assignment. Different-frequency square wave would produce by reversing the values, which justly depend on value of intermediate variables “temp_TH0” and “temp_TL0”. Table 1 shows every note and its corresponding frequency and simple-score code.