SN8P1700
8-bit micro-controller build-in 12-bit ADC
TIMER COUNTER 1 (TC1)
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
TC1out
Internal P5.3 I/Ocircuit
Aload1
Buzzer
TC1R reload
data buffer
Auto. reload
P5.3
÷2
R
PWM
Compare
PWM1OUT
S
TC1enb
load
fcpu
(8-TC1Rate)
TC1C
8-bit binary counter
TC1 Time out
÷2
CPUM0
counter reference value, and an 8-bit counter register (TC1C) whose value is automatically incremented by counter
logic.
Figure 8-6. 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).
SONiX TECHNOLOGY CO., LTD
Page 81
Revision 1.94