There's a timer in file "uart.c"
 
add the following code into fuction "void SCI_Init(void){}"
void SCI_Init(void)
{
//other code.....
TPM1SC = 0x48;
TPM1MODH = ox3E; //0x3E80 means the 16MHz system will enter isr every 1ms
TPM1MODL = ox80;
}
//here is the isr
interrupt void UART_TIMER_ISR(void)
{
 TPM1SC &= 0x7F; // Read, Clear bit 7, Write
 UartRxTimer++;  //  
 generalTimer++; // 
 //the system will be entered every 1ms, just add your own code here.
 //......
}
 
 
 
because it's a bad network as I'm in china
 
Evan