Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F684 Datasheet(PDF) 60 Page - Microchip Technology

Part # PIC16F684
Description  14-Pin, Flash-Based 8-Bit CMOS Microcontrollers
PDF  192 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F684 Datasheet(HTML) 60 Page - Microchip Technology

Back Button PIC16F684 Datasheet HTML 56Page - Microchip Technology PIC16F684 Datasheet HTML 57Page - Microchip Technology PIC16F684 Datasheet HTML 58Page - Microchip Technology PIC16F684 Datasheet HTML 59Page - Microchip Technology PIC16F684 Datasheet HTML 60Page - Microchip Technology PIC16F684 Datasheet HTML 61Page - Microchip Technology PIC16F684 Datasheet HTML 62Page - Microchip Technology PIC16F684 Datasheet HTML 63Page - Microchip Technology PIC16F684 Datasheet HTML 64Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 60 / 192 page
background image
PIC16F684
DS41202F-page 58
© 2007 Microchip Technology Inc.
8.2
Comparator Configuration
There are eight modes of operation for the comparator.
The CM<2:0> bits of the CMCON0 register are used to
select these modes as shown in Figure 8-5. I/O lines
change as a function of the mode and are designated
as follows:
• Analog function (A): digital input buffer is disabled
• Digital function (D): comparator digital output,
overrides port function
• Normal port function (I/O): independent of
comparator
The port pins denoted as “A” will read as a ‘0’
regardless of the state of the I/O pin or the I/O control
TRIS bit. Pins used as analog inputs should also have
the corresponding TRIS bit set to ‘1’ to disable the
digital output driver. Pins denoted as “D” should have
the corresponding TRIS bit set to ‘0’ to enable the
digital output driver.
FIGURE 8-5:
COMPARATOR I/O OPERATING MODES
Note:
Comparator interrupts should be disabled
during a Comparator mode change to
prevent unintended interrupts.
C1
C1IN-
VIN-
VIN+
C1IN+
Off(1)
Comparators Reset (POR Default Value)
A
A
CM<2:0> = 000
C2
C2IN-
VIN-
VIN+
C2IN+
Off(1)
A
A
C1
C1IN-
VIN-
VIN+
C1IN+
C1OUT
Two Independent Comparators
A
A
CM<2:0> = 100
C2
C2IN-
VIN-
VIN+
C2IN+
C2OUT
A
A
C1
C1IN-
VIN-
VIN+
C1IN+
C1OUT
Two Common Reference Comparators
A
I/O
CM<2:0> = 011
C2
C2IN-
VIN-
VIN+
C2IN+
C2OUT
A
A
C1
C1IN-
VIN-
VIN+
C1IN+
Off(1)
One Independent Comparator
I/O
I/O
CM<2:0> = 101
C2
C2IN-
VIN-
VIN+
C2IN+
C2OUT
A
A
C1
C1IN-
VIN-
VIN+
C1IN+
Off(1)
Comparators Off (Lowest Power)
I/O
I/O
CM<2:0> = 111
C2
C2IN-
VIN-
VIN+
C2IN+
Off(1)
I/O
I/O
C1
C1IN-
VIN-
VIN+
C1IN+
C1OUT
Four Inputs Multiplexed to Two Comparators
A
A
CM<2:0> = 010
C2
C2IN-
VIN-
VIN+
C2IN+
C2OUT
A
A
From
CVREF Module
CIS = 0
CIS = 1
CIS = 0
CIS = 1
C1
C1IN-
VIN-
VIN+
C1OUT(pin)
C1OUT
Two Common Reference Comparators with Outputs
A
D
CM<2:0> = 110
C2
C2IN-
VIN-
VIN+
C2IN+
C2OUT
A
A
C2OUT(pin)
C1
C1IN-
VIN-
VIN+
C1IN+
C1OUT
Three Inputs Multiplexed to Two Comparators
A
A
CM<2:0> = 001
C2
C2IN-
VIN-
VIN+
C2IN+
C2OUT
A
A
CIS = 0
CIS = 1
D
Legend: A = Analog Input, ports always reads ‘0’
CIS = Comparator Input Switch (CMCON0<3>)
I/O = Normal port I/O
D = Comparator Digital Output
Note 1:
Reads as ‘0’, unless CxINV = 1.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com