Lanqiao Cup Embedded-The Ninth Provincial Competition-Electronic Timer

Lanqiao Cup Embedded-The Ninth Provincial Competition-Electronic Timer

1. Analysis of competition questions

For this year's competition, the system block diagram is as follows, using LCD, LED, buttons, EEPROM, PWM output and other modules.
There is no problem with the configuration of the module. The difficulty of this session is mainly how to realize the long press and short press of the button, and the highlight display of the LCD. These two points are not involved in the previous sessions.
Since the PWM is a fixed 1Khz, it is enough to directly use the PWM1 mode of the timer, without using the OC_TOGGLE mode.
Insert picture description here

Second, the problem summary

The main reason is that I came into contact with a new test site, and the LCD highlighted it. This was not touched before. Regarding this test site, I wrote about how to operate it in another blog. Click me .

Three, the code

Code Cloud
GitHub

Guess you like

Origin blog.csdn.net/qq_43715171/article/details/115249127