SM39A16M1
8-Bit Micro-controller
16KB with ISP Flash
& 1K+256B RAM embedded
CRC Auto Reload For:
Mode 0 (Auto reload)
Mode 1 (negative edge of reload)
CRCH
TH2
CRCL
TL2
Overflow
Timer2
TF2
(16 bits Timer)
CCI1
CCF1
CC1H
CC2H
CC3H
CC1L
CC2L
CC3L
M
U
X
CC1
Noise
Filter
Prescaler
Fosc
SFR(Cmp0o)
SFR(ET2)
CCUINF[1:0]
CCUINFCLK[1:0]
CCU1
Source
CCI2
Timer2
Interrupt
CCF2
T2CON.T2PS[2:0]
M
U
X
CC2
Noise
Filter
SFR(Cmp1o)
CCUINF[1:0]
CCUINFCLK[1:0]
CCU2
Source
CCI3
CCF3
M
U
X
CC3
Noise
Filter
SFR(Cmp2o)
CCUINF[1:0]
CCUINFCLK[1:0]
CCU3
Source
CC0
CCI0
CRCH
CRCL
CCF0
Fig. 8-1: CCU action diagram
Mnemonic: T2CON
Address: C8h
7
6
5
4
3
2
-
1
0
Reset
00H
T2PS[2:0]
T2R[1:0]
T2I[1:0]
T2PS[2:0]: Prescaler select bit:
T2PS = 000 – timer 2 is clocked with the oscillator frequency.
T2PS = 001 – timer 2 is clocked with 1/2 of the oscillator frequency.
T2PS = 010 – timer 2 is clocked with 1/4 of the oscillator frequency.
T2PS = 011 – timer 2 is clocked with 1/6 of the oscillator frequency.
T2PS = 100 – timer 2 is clocked with 1/8 of the oscillator frequency.
T2PS = 101 – timer 2 is clocked with 1/12 of the oscillator frequency.
T2PS = 110 – timer 2 is clocked with 1/24 of the oscillator frequency.
T2R[1:0]: Timer 2 reload mode selection
T2R[1:0] = 0X – Reload disabled
T2R[1:0] = 10 – Mode 0: Auto Reload
T2R[1:0] = 11 – Mode 1: T2EX Falling Edge Reload
T2I[1:0]: Timer 2 input selection
T2I[1:0] = 00 – Timer 2 stop
T2I[1:0] = 01 – Input frequency from prescaler (T2PS[2:0])
T2I[1:0] = 10 – Timer 2 is incremented by external signal at pin T2
T2I[1:0] = 11 – internal clock input is gated to the Timer 2
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M069 Ver C SM39A16M1 7/31/2013
- 42 -