Download Print this page

Timer 3 Counting Registers; Timer 4 Counting Registers; Timer 3 8-Bit Prescaler Register (Tm3Ps) - STC micro STC8A8K64D4 Series Reference Manual

Advertisement

STC8A8K64D4 Series Manual
0: T4 stops counting.
1: T4 start counting.
T4_C/T: T4 mode select bit.
0: T4 is used as a timer (input pulse is from internal system clock);
1: T4 is used as a counter (input pulse is from external T4/P0.6 pin).
T4x12: T4 speed control bit.
0: The clock source of T4 is SYSclk/12.
1: The clock source of T4 is SYSclk/1.
T4CLKO: T4 clock out control bit.
0: Turn off the clock output.
1: P0.7 is configured for T4 clock output pin. When T4 overflows, P0.7 will flip automatically.
TR3: T3 run control bit.
0: T3 stops counting.
1: T3 start counting.
T3_C/T: T3 mode select bit.
0: T3 is used as a timer (input pulse is from internal system clock);
1: T3 is used as a counter (input pulse is from external T3/P0.4 pin).
T3x12: T3 speed control bit.
0: The clock source of T3 is SYSclk/12.
1: The clock source of T3 is SYSclk/1.
T3CLKO: T3 clock out control bit.
0: Turn off the clock output.
1: P0.5 is configured for T3 clock output pin. When T3 overflows, P0.5 will flip automatically.

13.4.2 Timer 3 Counting Registers

Symbol
Address
T3L
D5H
T3H
D4H
T3 operates in 16-bit auto-reload mode. T3L and T3H combine into a 16-bit register with T3L as the low byte and
T3H as the high byte. When the 16-bit counter [T3H, T3L] overflows, the system loads the reload value in the
internal 16-bit reload register into [T3H, T3L] automatically.

13.4.3 Timer 4 Counting Registers

Symbol
Address
T4L
D3H
T4H
D2H
T4 operates in 16-bit auto-reload mode. T4L and T4H combine into a 16-bit register with T4L as the low byte and
T4H as the high byte. When the 16-bit counter [T4H, T4L] overflows, the system loads the reload value in the
internal 16-bit reload register into [T4H, T4L] automatically.

13.4.4 Timer 3 8-bit Prescaler Register (TM3PS)

Symbol
Address
TM3PS
FEA3H
Timer 3 clock = SYSclk ÷ ( TM3PS + 1 )
B7
B6
B5
B7
B6
B5
B7
B6
B5
B4
B3
B2
B4
B3
B2
B4
B3
B2
B1
B0
B1
B0
B1
B0
- 292 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin