AN202
V1.0 | Page 23/73
www.cmostek.com
4.1.9
TMR2
(
Addr:0x11
)
Table 4-15. TMR2 Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
TMR2
TMR2<7:0>
Reset
0000 0000
Type
RW
4.1.10
T2CON
(
Addr:0x12
)
Table 4-16. T2CONRegister
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
T2CON
-
TOUTPS<3:0>
TMR2ON
T2CKPS<1:0>
Reset
-
0000
0
00
Type
-
RW
RW
RW
Table 4-17. T2CON Bit Function Description
1
TMR2IF
Timer2 to PR2 Match Interrupt Fag bit
1 = Timer2 to PR2 match occurred(must be cleared in software)
0 = Timer2 to PR2 match has not occurred
0
-
Reserved-bit, can not be written as 1
Bit
Name
Function
7
-
Reserved-bit, read as 0
6:3
TOUTPS<3:0>
Timer2 OutputPostscale Select bits
0000 = 1:1 postscale
0001 = 1:2 postscale
0010 = 1:3 postscale
0011 = 1:4 postscale
0100 = 1:5 postscale
0101 = 1:6 postscale
0110 = 1:7 postscale
0111 = 1:8 postscale
1000 = 1:9 postscale
1001 = 1:10 postscale
1010 = 1:11 postscale
1011 = 1:12 postscale
1100 = 1:13 postscale
1101 = 1:14 postscale
1110 = 1:15 postscale
1111 = 1:16 postscale
Содержание CMT2189C
Страница 32: ...AN202 V1 0 Page 32 73 www cmostek com...