MS51
Nov. 28, 2019 Page 301 of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
T2CON – Timer 2 Control
C8H, All pages, Bit addressable
Timer 2 overflow flag
This bit is set when Timer 2 overflows or a compare match occurs. If the Timer 2 interrupt and the
global interrupt are enable, setting this bit will make CPU execute Timer 2 interrupt service routine.
This bit is not automatically cleared via hardware and should be cleared via software.
Timer 2 run control
0 = Timer 2 Disabled. Clearing this bit will halt Timer 2 and the current count will be preserved in
TH2 and TL2.
1 = Timer 2 Enabled.
Timer 2 compare or auto-reload mode select
This bit selects Timer 2 functioning mode.
0 = Auto-reload mode.
1 = Compare mode.