SM39A16M1
8-Bit Micro-controller
16KB with ISP Flash
& 1K+256B RAM embedded
Mnemonic: CCEN2
Address: D1h
7
-
6
5
4
3
-
2
1
0
Reset
00H
COCAM3[2:0]
COCAM2[2:0]
COCAM3[2:0] 000 - Compare/Capture disable
001 - Compare enable but no output on Pin
010 - Compare mode 0
011 - Compare mode 1
100 - Capture on rising edge at pin CC3
101 - Capture on falling edge at pin CC3
110 - Capture on both rising and falling edge at pin CC3
111 - Capture on write operation into register CC3
COCAM2[2:0] 000 - Compare/Capture disable
001 - Compare enable but no output on Pin
010 - Compare mode 0
011 - Compare mode 1
100 - Capture on rising edge at pin CC2
101 - Capture on falling edge at pin CC2
110 - Capture on both rising and falling edge at pin CC2
111 - Capture on write operation into register CC2
8.1 Timer 2 function
Timer 2 can operate as timer, event counter, or gated timer as explained later.
8.1.1 Timer mode
In this mode Timer 2 can by incremented in various frequency that depending on the prescaler. The prescaler is
selected by bit T2PS[2:0] in register T2CON. As shown in Fig. 8-2
Fig. 8-2: Timer mode and Reload mode function
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M069
Ver C SM39A16M1 7/31/2013
- 44 -