Back to Khushaan Virk

Alarm clock

Nov 2025

A 12-hour alarm clock on the N76E003, written entirely in 8051 assembly and driven by timer interrupts.

MCU
N76E003 (8051 family)
Clock
16.6 MHz internal oscillator
Timer 0
Square-wave alarm tone
Timer 2
Half-second tick for the BCD clock
Display
16×2 LCD in 4-bit mode
Inputs
Hour, minute, second, AM/PM, mode and snooze buttons