i want to write a code for my LCD to display real time information...i'm considering using a timer1 interrupt to update my display but i have no clue how to achieve that!. any suggestions?
First you have to understand how the timer works. For this you need to read the datasheet for the part you are using. Have you done that?
Then you have to find out how interrupts are configured and enabled. For this you need to read the datasheet for the part you are using. Have you done that?
Then you need to figure out what the processor does when an interrupt condition is presnet. For this you need to read the datasheet for the part you are using. Have you done that?
Then you need to figure out what you want to do once the processor gets you to a function that will handle the interrupt. For this you need to read the datasheet for the part you are using. Have you done that?
After you have read and reread the datasheet multiple times you should probably visit Nigel's tutotials on the subject.