Digital Alarm Clock design based on PIC16F876A will be demonstrated in this post. Various modules from earlier project were implemented in current design hardware and source code. For example it uses the same 7-Segment Display and multiplexing routing as in Digital Timer, clock generation functions were taken from a simpler version of Digital Clock ( Without alarm capability ) and slightly modified.
In order to adjust the time press Min/Hours button while holding Time. Similarly press Min/Hours button while holding Alarm to set the desired alarm value. See design schematic on the next page for correct buttons designation. Time format is 24H. Snooze function currently not implemented, follow attached assembly source code below for additional information, I’ve tried to provide sufficient amount of comments in each module/function.