EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Timer 3 Counting Registers; Timer 4 Counting Registers; Timer 3 8-Bit Prescaler Register (TM3 PS)

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- 292 -
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
B7
B6
B5
B4
B3
B2
B1
B0
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
B7
B6
B5
B4
B3
B2
B1
B0
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
B7
B6
B5
B4
B3
B2
B1
B0
TM3PS
FEA3H
Timer 3 clock = SYSclk
÷
( TM3PS + 1 )

Table of Contents

Related product manuals