Myself and my partner have written a program to interface keypad(4x4)&lcd to a targetboard (c8051) and also we have written a subroutine to realise a realtime clock using timer3 interrupt. The problem is the clock runs only when the program control is in main once another function is called from main,the clock halts.Can somebody help me out. regards gayathri