Preliminary
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
TC1M MODE REGISTER
The TC1M is the timer mode register, which is an 8-bit read/write register. By loading different value into the TC1M
register, users can modify the timer counter clock frequency dynamically when program executing.
Eight rates for TC1 timer can be selected by TC1RATE0 ~ TC1RATE2 and TC1X8 bits of T0M register. If TC1X8=1 the
TC1 will faster 8 times than TC1X8=0 (Initial value). The bit7 of TC1M named TC1ENB is the control bit to start TC1
timer.
TC1M initial value = 0000 0000
0DCH
TC1M
Bit 7
TC1ENB TC1RATE2 TC1RATE1 TC1RATE0
R/W R/W R/W R/W
Bit 6
Bit 5
Bit 4
Bit 3
0
-
Bit 2
ALOAD1
R/W
Bit 1
TC1OUT PWM1OUT
R/W R/W
Bit 0
Bit7
TC1ENB: TC1 counter/BZ1/PWM1OUT enable bit.
0 = disable,
1 = enable.
Bit[6:4]
TC1RATE[2:0]: TC1 clock source selection bits. TC1X8 is bit 3 of T0M register.
TC1 Clock Source
TC1RATE [2:0]
TC1X8 = 0
TC1X8 = 1
000
001
…
Fcpu/256 = Fosc/1024 Fosc/128
Fcpu/128 = Fosc/512 Fosc/64
…
…
110
111
Fcpu/4 = Fosc/16
Fcpu/2 = Fosc/8
Fosc/2
Fosc
Note: Fcpu = Fosc / 4
Bit2
Bit1
Bit0
ALOAD1: TC1 auto-reload function control bit.
0 = none auto-reload
1 = auto-reload.
TC01UT: TC1 time-out toggle signal output control bit.
0 = to disable TC1 signal output and to enable P5.3’s I/O function,
1 = to enable TC1’s signal output and to disable P5.3’s I/O function. (Auto-disable the PWM0OUT function.)
PWM1OUT: TC1’s PWM output control bit.
0 = to disable the PWM output,
1 = to enable the PWM output (The TC1OUT control bit must = 0)
ꢀ
ꢀ
Note: TC1 doesn’t support event counter mode because SN8P1702A and SN8P1703A hasn’t P0.1 for TC1
event counter clock input.
Note: Bit3 must set to “0”.
SONiX TECHNOLOGY CO., LTD
Page 67
Revision 0.5