Scenario : Need to generate a 15Khz clock and enable the serial port . Individually both work but I cant get this to work , help. void init_timer() { SCON = 0x50; TMOD = 0x22; TH1 = 0xFA; PCON = 0x80; ET0 = 1; TH0 = 223; EA = 1; TR0 = 1; TR1 = 1; TI = 1; ES = 1; } Timer0 is the 15Khz clock and Timer1 is for the serial port.