SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 92
Revision 1.93
TC0C – TC0 Timer’s Counting Register
Register Name
TC0C
Address 0DBH
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name TC0C7 TC0C6 TC0C5 TC0C4 TC0C3 TC0C2 TC0C1 TC0C0
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial
Value
0 0 0 0 0 0 0 0
Function:
1. Store TC0 timer’s counter value. The equation of TC0C is as following.
TC0C initial value = 256 - (TC0 interrupt interval time * input clock)
The input clock is controlled by TC0rate0~TC0rate2 bits. The TC0 interrupt interval time is user’s desire value.
2. The maximum interval time of TC0 interrupt as follow:
High speed mode (fcpu = 3.58MHz / 4)
TC0rate
TC0 Input Clock
Max overflow interval
One step = max/256
000 fcpu/256 73.2
ms
286us
001 fcpu/128 36.6
ms
143us
010 fcpu/64 18.3
ms
71.5us
011 fcpu/32 9.15
ms
35.8us
100 fcpu/16
4.57ms
17.9us
101 fcpu/8
2.28ms
8.94us
110 fcpu/4
1.14ms
4.47us
111 fcpu/2
0.57ms
2.23us