SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 68
Version 1.0
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 7
th
bit of TC1M named TC1ENB is the control bit to start TC1
timer.
TC1M initial value = 0000 0000
0DCH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
TC1M
TC1ENB TC1RATE2
TC1RATE1 TC1RATE0
TC1CKS ALOAD1 TC1OUT
PWM1OUT
R/W R/W R/W R/W R/W R/W R/W R/W
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 F
CPU
/256 = F
OSC
/1024 F
OSC
/128
001 F
CPU
/128 = F
OSC
/512 F
OSC
/64
… …
…
110 F
CPU
/4 = F
OSC
/16 F
OSC
/2
111 F
CPU
/2 = F
OSC
/8 F
OSC
Note: F
CPU
= F
OSC
/ 4
Bit3
TC1CKS: TC1 clock source select bit. “0” = F
CPU
, “1” = external clock comes form INT1/P0.1 pin. TC1 will be
an event counter.
Bit2
ALOAD1:
TC1 auto-reload function control bit.
0 = none auto-reload
1 = auto-reload.
Bit1
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.)
Bit0
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: Note: When TC1CKS=1, TC1 became an external event counter. No more P0.1 interrupt request will
be raised. (P01IRQ will be always 0)