SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 67
V1.4
8.3 TIMER COUNTER 1 (TC1)
8.3.1 OVERVIEW
The timer counter 1 (TC1) is used to generate an interrupt request when a specified time interval has elapsed. TC1
has a auto re-loadable counter that consists of two parts: an 8-bit reload register (TC1R) into which you write the
counter reference value, and an 8-bit counter register (TC1C) whose value is automatically incremented by counter
logic.
Figure 8-3. Timer Count TC1 Block Diagram
The main purposes of the TC1 timer is as following.
¾
8-bit programmable timer:
Generates interrupts at specific time intervals based on the selected clock
frequency.
¾
Arbitrary frequency output (Buzzer output):
Outputs selectable clock frequencies to the BZ1 pin (P5.3).
¾
PWM function:
PWM output can be generated by the PWM1OUT bit and output to PWM1OUT pin (P5.3).
TC1R reload
data buffer
TC1ENB
TC1C
8-bit binary counter
TC1 Time out
TC1CKS
load
Aload1
Auto. reload
P5.3
÷
2
TC1out
Internal P5.3 I/O circuit
CPUM0
S
R
Compare
PWM1OUT
PWM
Buzzer
Fcpu
TC1X8
P0.1
(Schmitter trigger)
Fosc
÷
2
(8-TC0RATE)