![](http://datasheet.mmic.net.cn/120000/MSM66577-XXTB_datasheet_3560088/MSM66577-XXTB_184.png)
8-14
MSM66577 Family User's Manual
Chapter 8 General-Purpose 8/16 Bit Timers
(4)
General-purpose 8-bit timer 2 register (TM2R)
This register sets the value to be loaded after general-purpose 8-bit timer 2 counter (TM2C)
overflows. If the timer value (TM2C) and the reload value (TM2R) are identical, this register
will automatically be set just by setting TM2C. If the values are different or are to be
modified, this register must be set explicitly.
(5)
General-purpose 8-bit timer 2 control register (TM2CON)
Bits 0 to 2 (TM2C0 to TM2C2) of this register specify the count clock for timer 2. If TM2OUT
(timer output) is to be used, specify the initial value with bit 7 (TM2OUT). If bit 3 (TM2RUN)
is set to "1", timer 2 will begin counting. If reset to "0", timer 2 will halt counting.
16-bit auto-reload timer mode
(1)
Port 6 mode register (P6IO)
If TM1OUT (timer 1 output) and TM2OUT (timer 2 output) are to be used, set bits 5 and 7
(P6IO5, P6IO7) to "1" to configure the ports as outputs. If TM1EVT (event input) is to be
used, reset bit 4 (P6IO4) to "0" to configure the port as an input.
(2)
Port 6 secondary function control register (P6SF)
If TM1OUT (timer 1 output) and TM2OUT (timer 2 output) are to be used, set bits 5 and 7
(P6SF5, P6SF7) to "1" to configure the ports as secondary function outputs. If TM1EVT
(event input) is to be used, disable or enable the pull-up resistor with bit 4 (P6SF4).
(3)
General-purpose 16-bit timer 12 counter (TM12C)
Set the timer value that will be valid at the start of counting. When writing to TM12C, the
same value will also be simultaneously and automatically written to the general-purpose 8-
bit timer 12 register (TM12R).
(4)
General-purpose 16-bit timer 12 register (TM12R)
This register sets the value to be loaded after general-purpose 16-bit timer 12 counter
(TM12C) overflows. If the timer value (TM12C) and the reload value (TM12R) are identical,
this register will automatically be set just by setting TM12C. If the values are different or
are to be modified, this register must be set explicitly.
(5)
General-purpose 8-bit timer 1 control register (TM1CON)
Bits 0 to 2 (TM1C0 to TM1C2) of this register specify the count clock for timer 1. If TM1OUT
(timer 1 output) is to be used, specify the initial value with bit 7 (TM1OUT). If bit 3 (TM1RUN)
is set to "1", timer 1 will begin counting. If reset to "0", timer 1 will halt counting.
(6)
General-purpose 8-bit timer 2 control register (TM2CON)
Setting bit 4 (MOD16) to "1" sets the 16-bit timer mode. While this bit is set, bits 0 to 2
(TM2C0 to TM2C2) and bit 3 (TM2RUN) settings are invalid and setting bit 3 (TM1RUN)
of the timer 1 control register (TM1CON) to "1" starts simultaneous counting of timers 1 and
2. If TM2OUT (timer 2 output) is to be used, specify the initial value with bit 7 (TM2OUT).