SN8P1600
8-bit micro-controller
TC1M MODE REGISTER
The TC1M is an 8-bit read/write timer mode register. By loading different value into the TC1M register, users can
modify the timer frequency dynamically as program executing.
Eight rates for TC1 timer can be selected by TC0RATE1 ~ TC1RATE2 bits. The range is from fcpu/2 to fcpu/256. The
TC1M initial value is zero and the rate is fcpu/256. The bit7 of TC1M named TC1ENB is the control bit to start TC1
timer. The combination of these bits is to determine the TC1 timer clock frequency and the intervals.
0DCH
TC1M
Read/Write
After reset
Bit 7
TC1ENB
R/W
Bit 6
TC1rate2
R/W
Bit 5
TC1rate1
R/W
Bit 4
TC1rate0
R/W
Bit 3
0
-
Bit 2
ALOAD1
R/W
Bit 1
Bit 0
TC1OUT PWM1OUT
R/W
0
R/W
0
0
0
0
0
0
0
TC1ENB: TC1 counter/BZ1/PWM1OUT enable bit. “0” = disable, “1” = enable.
TC1RATE2~TC1RATE0: TC1 internal clock select bits. 000 = fcpu/256, 001 = fcpu/128, … , 110 = fcpu/4, 111 =
fcpu/2.
ALOAD1: TC1 auto-reload control bit, “0” the auto-reload function is disabled. “1 “ is to enable the auto-reload function.
TC1OUT : TC1 Time-out toggle signal output control bit. “0”: No TC1 time-out output signal. “1”: When TC1 time-out
occurs, P5.3 output toggles.
PWM1OUT : PWM output control bit. “0”: No PWM output function. “1”: PWM will output waveform through pin P5.3.
SONiX TECHNOLOGY CO., LTD
Page 57
Revision 1.94