MS51
Nov. 28, 2019 Page 57 of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
TMOD – Timer 0 and 1 Mode
Timer 1 gate control
0 = Timer 1 will clock when TR1 is 1 regardless of INT1
logic level.
1 = Timer 1 will clock only when TR1 is 1 and INT1
Timer 1 Counter/Timer select
0 = Timer 1 is incremented by internal system clock.
1 = Timer 1 is incremented by the falling edge of the external pin T1.
Mode 0: 13-bit Timer/Counter
Mode 1: 16-bit Timer/Counter
Mode 2: 8-bit Timer/Counter with auto-reload from TH1
Timer 0 gate control
0 = Timer 0 will clock when TR0 is 1 regardless of INT0
logic level.
1 = Timer 0 will clock only when TR0 is 1 and INT0
Timer 0 Counter/Timer select
0 = Timer 0 is incremented by internal system clock.
1 = Timer 0 is incremented by the falling edge of the external pin T0.
Mode 0: 13-bit Timer/Counter
Mode 1: 16-bit Timer/Counter
Mode 2: 8-bit Timer/Counter with auto-reload from TH0
Mode 3: TL0 as a 8-bit Timer/Counter and TH0 as a 8-bit Timer