SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 91
Revision 1.93
TC0M – TC0 Timer Counter Register
Register Name
TC0M
Address 0DAH
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name
TC0ENB TC0rate2 TC0rate1 TC0rate0
0
ALOAD0 TC0OUT PWM0OUT
Read/Write R/W R/W R/W R/W - R/W R/W R/W
Initial
Value
0 0 0 0 0 0 0 0
Bit3
Undefined
0
Always write zero.
Note: This Bit must set to 0 or the system might be error.
TC0ENB
TC0 Timer Control Bit
0
Disable TC0 and TC0 timer stop counting.
1
Enable TC0 and TC0 timer start to count.
TC0rate2~TC0rate0
TC0’s Clock Source Select Bits
000
Fcpu/256.
001
Fcpu/128.
010
Fcpu/64.
011
Fcpu/32.
100
Fcpu/16.
101
Fcpu/8.
110
Fcpu/4.
111
Fcpu/2.
ALOAD0
TC0 Auto Reload Function Control Bit
0
Disable Auto reload function.
1
Enable Auto reload function.
Note: The PWM0OUT and TC0OUT functions must be with “ALOAD0 = 1”.
TC0OUT
TC0 Time Out Toggle Signal Control Bit
0
Disable TC0 signal output and enable P5.4’s I/O function.
1
Enable TC0 signal output and disable P5.4’s I/O function.
Note: While “TC0OUT = 1”, PWM0OUT is set to “0” automatically.
PWM0OUT
PWM0 Output Control Bit
0
Disable PWM0 output function and enable P5.4’s I/O function.
1
Enable PWM0 output function and disable P5.4’s I/O function.
Note: The TC0OUT must be set to “0” before the PWM0OUT enable.