Mini drill speed controller on a PIC controller

Mini drill speed controller on a PIC controller
Simple speed controller for microdrill on PIC16F628A
1. Functions.
1.1. Output power regulation. Control method – PWM. PWM frequency – 2500 Hz. The number of power steps is 100.
1.2. Power level indication by a 2-digit LED indicator with a common anode.
1.3. Preset up to 4 programs.
2. Job description.
2.1. When the power is turned on, program No. 1 is activated.
2.2. Switching programs using the buttons PROG _1 – PROG _4 .
2.3. The active program can be changed with the PLUS / MINUS buttons .
2.4. After ~10 seconds from the last pressing of the buttons, the new settings will be written to the non-volatile memory.
2.5. For quick shutdown (without turning off the power), you can use program No. 1 by setting zero power in it.
3. Notes.
3.1. The project does not show the power supply outputs of the MK.
3.2. The project does not draw an output power switch (driver) for controlling the load.