MCU through t0 timing 1s, at the same time T1 began to count and through the LCD display program
Author:Pang Time:2021-07-21 09:53 Browse(667)
[0] when t0 is started (timing mode, 20-50ms interrupt), T1 is started.
[0] when t0 is started (timing mode, 20-50ms interrupt), T1 is started【 1】 In t0 interrupt, when the timer (e.g. after 50 times of 20ms) reaches 1s, set the second flag. Read Th1 directly and save the value of TL1 to variable x. And clear the T1 count【 2】 In the main program to measure the second flag, clear, x will be sent to the display unit【 3】 According to the specific LCD module, the graphic data is organized and sent to the LCD module【 [0] - initialization, [1] timing interrupt service, [2] main monitor program, [3] LCD interface function.. After completing these four parts, it can be realized. Do it yourself. If you have any questions...

MCU through t0 timing 1s, at the same time T1 began to count and through the LCD display program

Related topics