SN8P1600
8-bit micro-controller
TC0M MODE REGISTER
The TC0M is an 8-bit read/write timer mode register. By loading different value into the TC0M register, users can
modify the timer frequency dynamically as program executing.
Eight rates for TC0 timer can be selected by TC0RATE0 ~ TC0RATE2 bits. The range is from fcpu/2 to fcpu/256. The
TC0M initial value is zero and the rate is fcpu/256. The bit7 of TC0M named TC0ENB is the control bit to start TC0
timer. The combination of these bits is to determine the TC0 timer clock frequency and the intervals.
0DAH
TC0M
Read/Write
After reset
Bit 7
TC0ENB
R/W
Bit 6
TC0rate2
R/W
Bit 5
TC0rate1
R/W
Bit 4
TC0rate0
R/W
Bit 3
0
-
Bit 2
0
-
Bit 1
0
-
Bit 0
0
-
0
0
0
0
0
-
-
-
TC0ENB: TC0 counter enable bit. “0” = disable, “1” = enable.
TC0RATE2~TC0RATE0: TC0 internal clock select bits. 000 = fcpu/256, 001 = fcpu/128, … , 110 = fcpu/4, 111 =
fcpu/2.
SONiX TECHNOLOGY CO., LTD
Page 53
Revision 1.94