An embedded system program for MSP430 which can calibrate time automatically with the help of signals.