Microchip Technology MCP9800DM-DL2 Data Sheet

Page of 98
PIC10F200/202/204/206
DS40001239E-page 38
 
 2004-2013 Microchip Technology Inc.
8.1
Comparator Configuration
The on-board comparator inputs, (GP0/CIN+, GP1/
CIN-), as well as the comparator output (GP2/COUT),
are steerable. The CMCON0, OPTION and TRIS
registers are used to steer these pins (see Figure 8-1).
If the Comparator mode is changed, the comparator
output level may not be valid for the specified mode
change delay shown in Table 12-1.
 
FIGURE 8-1:
BLOCK DIAGRAM OF THE COMPARATOR 
TABLE 8-1:
TMR0 CLOCK SOURCE 
FUNCTION MUXING
Note:
The comparator can have an inverted
output (see Figure 8-1).
+
-
C+
C-
Band Gap Buffer
(0.6V)
CMPON
POL
T0CKSEL
T0CKI/GP2/COUT
C
OUTEN
COUT(Register)
T0CKI Pin
T0CKI
Q
D
S
CWUF
Read
CMCON
CWU
CPREF
CNREF
T0CS CMPT0CS COUTEN
Source
0
x
x
Internal Instruction 
Cycle
1
0
0
CMPOUT
1
0
1
CMPOUT
1
1
0
CMPOUT
1
1
1
T0CKI