SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 93
Revision 1.93
TC1M – TC1 Timer Counter Register
Register Name
TC1M
Address 0DCH
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name
TC1ENB TC1rate2 TC1rate1 TC1rate0
0
ALOAD1 TC1OUT PWM1OUT
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.
TC1ENB
TC1 Timer Control Bit
0
Disable TC1 and TC1 timer stop counting.
1
Enable TC1 and TC1 timer start to count.
TC1rate2~TC1rate0
TC1’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.
ALOAD1
TC1 Auto Reload Function Control Bit
0
Disable Auto reload function.
1
Enable Auto reload function.
Note: The PWM1OUT and TC1OUT functions must be with “ALOAD1 = 1”.
TC1OUT
TC1 Time Out Toggle Signal Control Bit
0
Disable TC1 signal output and enable P5.3’s I/O function.
1
Enable TC1 signal output and disable P5.3’s I/O function.
Note: While “TC1OUT = 1”, PWM1OUT is set to “0” automatically.
PWM1OUT
PWM1 Output Control Bit
0
Disable PWM1 output function and enable P5.3’s I/O function.
1
Enable PWM1 output function and disable P5.3’s I/O function.
Note: The TC1OUT must be set to “0” before the PWM1OUT enable.