STC8A8K64D4 Series Manual
13.2.9 Timer 1 mode 2 (8-bit auto-reloadable mode)
In this mode, Timer/Counter 1 is an 8-bit counter that can be automatically reloaded, as shown in the figure below.
÷ 12
SYSclk
÷ 1
The overflow of TL1 not only sets TF1, but also reloads the content of TH1 into TL1. The content of TH1 is preset
by software, and its content remains unchanged during reloading.
When T1CLKO/INT_CLKO.1=1, the P3.4/T0 pin is configured as timer 1's clock output T1CLKO. The output
clock frequency is
T1 overflow
If C/T=0, the timer/counter 1 counts the internal system clock, then:
if T1 works in 1T mode (AUXR.6/T1x12=1), the output clock frequency =
if T1 works in 12T mode (AUXR.6/T1x12=0), the output clock frequency =
If C/T=1, the timer/counter T1 counts the external pulse input (P3.5/T1), then:
Output clock frequency =
13.2.10 Timer 0 Counting Registers
Symbol
Address
TL0
8AH
TH0
8CH
When T0 is operating in 16-bit mode (Mode 0, Mode 1, Mode 3), TL0 and TH0 combine into a 16-bit register with
TL0 as the low byte and TH0 as the high byte. For 8-bit mode (mode 2), TL0 and TH0 are two independent 8-
bit registers.
13.2.11 Timer 1 Counting Registers
Symbol
Address
TL1
8BH
TH1
8DH
When T1 is operating in 16-bit mode (Mode 0, Mode 1, Mode 3), TL1 and TH1 combine into a 16-bit register with
TL1 as the low byte and TH1 as the high byte. For 8-bit mode (mode 2), TL1 and TH1 are two independent 8-
bit registers.
AUXR.6/T1x12=0
C/T=0
AUXR.6/T1x12=1
C/T=1
T1 Pin
TR1
GATE
INT1
Timer/counter 1 mode 2: 8-bit auto-reloadable mode
rate/2.
(T1_Pin_CLK) / (256-TH1)/2
B7
B6
B7
B6
TL1
(8bits)
control
TH1
(8bits)
B5
B4
B3
B5
B4
B3
TF1
Interrupt
Toggle
T1CLKO
P3.4
T1CLKO
(SYSclk)/(256-TH1)/2
(SYSclk)/12/(256-TH1)/2
B2
B1
B2
B1
B0
B0
- 287 -
Need help?
Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?