SN8P2604A
8-Bit Micro-Controller
8.3 TIMER/COUNTER 1 (TC1)
8.3.1 OVERVIEW
The TC1 is an 8-bit binary up counting timer. TC1 has two clock sources including internal clock and external clock for
counting a precision time. The internal clock source is from Fcpu. The external clock is INT1 from P0.1 pin (Falling
edge trigger). Using TC1M register selects TC1C’s clock source from internal or external. If TC1 timer occurs an
overflow, it will continue counting and issue a time-out signal to trigger TC1 interrupt to request interrupt service. TC1
overflow time is 0xFF to 0X00 normally. Under PWM mode, TC1 overflow is still 256 counts.
The main purposes of the TC1 timer is as following.
)
)
8-bit programmable up counting timer: Generates interrupts at specific time intervals based on the selected
clock frequency.
External event counter: Counts system “events” based on falling edge detection of external clock signals at the
INT1 input pin.
Buzzer output
PWM output
)
)
TC1OUT
Internal P5.3 I/O Circuit
ALOAD1
Buzzer
Auto. Reload
TC1 / 2
P5.3
TC1R Reload
Data Buffer
PWM1OUT
R
S
PWM
TC1 Rate
(Fcpu/2~Fcpu/256)
Compare
TC1CKS
TC1ENB
Load
Fcpu
TC1C
8-Bit Binary Up
Counting Counter
TC1 Time Out
INT1
(Schmitter Trigger)
CPUM0,1
SONiX TECHNOLOGY CO., LTD
Page 77
Version 0.3