At89c2051 Projects -

Debouncing switches, look-up tables for 7-segment codes, and interrupt handling.

Let me know if you need anything else!

#include <at89c2051.h>

void main() while(1) unsigned char key = get_key(); if(key != 0xFF) entered[pos++] = key; beep(); if(pos == 4) if(memcmp(entered, code, 4) == 0) relay_on(); delay_ms(3000); relay_off(); else // wrong code: beep error at89c2051 projects