I have to believe that this project has been done many, many times. Have you taken advantage of Google to find out? Get the 16F628 data sheet too. No sense in reinventing the wheel! Vic *____________________________________________________________________________________________* *Victor Fraenckel KC2GUI victorf ATSIGN windreader DOT com** * -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist