In this project a clock was created where the user can adjust hours, minutes, seconds, days, months and years. In addition, the clock has an alarm function, the user can configure the clock both via a serial terminal and also with the help of buttons.
To run the system you will need to install
*MPLAB X IDE v3.55
*XC8 v1.41
*peripheral-libraries-for-pic18-v2.00rc3
*Proteus Professional 8.5 - SP0
In this 4-button system
1) Change screen -> being able to follow both Time and Date or alarm
2) Swap cursor -> move the LCD cursor
3) Increment
4) Decrement
For the serial communication to work, where the user can update the clock or even show the current data in another terminal, it is necessary to follow the following logic
1) if is typed 1, 1 : The current time will be shown in the second terminal
2) if is typed 1, 2: The current date will be shown in the second terminal
3) if is typed 1, 3: The current alarm will be shown in the second terminal
4) if is typed 2, 1, HH, MM, SS : The clock time will be updated and shown in the second terminal
5) if is typed 2, 2, DD, MM, YY : The clock date will be updated and shown in the second terminal
6) if is typed 2, 3, HH, MM, SS: The clock alarm will be updated and displayed on the second terminalterminal
Made by Railson Martins 👋🏽.