PIC16F684-E/SL Microchip Technology, PIC16F684-E/SL Datasheet - Page 60
![IC PIC MCU FLASH 2KX14 14SOIC](/photos/6/59/65933/150-14-soic_sml.jpg)
PIC16F684-E/SL
Manufacturer Part Number
PIC16F684-E/SL
Description
IC PIC MCU FLASH 2KX14 14SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16F684-ISL.pdf
(4 pages)
4.PIC16F684-ISL.pdf
(192 pages)
5.PIC16F684-ISL.pdf
(6 pages)
6.PIC16F684-IST.pdf
(164 pages)
Specifications of PIC16F684-E/SL
Program Memory Type
FLASH
Program Memory Size
3.5KB (2K x 14)
Package / Case
14-SOIC (3.9mm Width), 14-SOL
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
12
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
12
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163014, DM164120-4
Minimum Operating Temperature
- 40 C
On-chip Adc
8-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PIC16F684
8.2
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,
• Normal port function (I/O): independent of
FIGURE 8-5:
DS41202F-page 58
Note 1:
Comparators Reset (POR Default Value)
CM<2:0> = 000
Legend: A = Analog Input, ports always reads ‘0’
overrides port function
comparator
Three Inputs Multiplexed to Two Comparators
CM<2:0> = 001
Four Inputs Multiplexed to Two Comparators
CM<2:0> = 010
Two Common Reference Comparators
CM<2:0> = 011
C1IN-
C1IN+
C2IN-
C2IN+
C1IN-
C1IN+
C2IN-
C2IN+
Comparator Configuration
C1IN-
C1IN+
C2IN-
C2IN+
C1IN-
C1IN+
C2IN-
C2IN+
Reads as ‘0’, unless CxINV = 1.
I/O = Normal port I/O
A
A
A
A
A
A
A
A
A
A
A
A
I/O
CIS = 0
CIS = 1
A
A
A
CIS = 0
CIS = 1
CIS = 0
CIS = 1
COMPARATOR I/O OPERATING MODES
V
V
V
V
IN
IN
IN
IN
V
V
V
V
-
+
-
+
IN
IN
IN
IN
-
+
-
+
V
V
V
V
C1
C2
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
C1
C2
-
+
-
+
-
+
-
+
From
C1
C2
C1
C2
CV
Off
Off
C1OUT
C2OUT
(1)
(1)
REF
C2OUT
C1OUT
C1OUT
C2OUT
Module
Two Independent Comparators
CM<2:0> = 100
Comparators Off (Lowest Power)
CM<2:0> = 111
One Independent Comparator
CM<2:0> = 101
Two Common Reference Comparators with Outputs
CM<2:0> = 110
CIS = Comparator Input Switch (CMCON0<3>)
D = Comparator Digital Output
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.
Note:
C1OUT(pin)
C2OUT(pin)
C1IN-
C1IN+
C2IN-
C2IN+
C1IN-
C1IN+
C2IN-
C2IN+
C1IN-
C2IN-
C2IN+
C1IN-
C1IN+
C2IN-
C2IN+
Comparator interrupts should be disabled
during a Comparator mode change to
prevent unintended interrupts.
A
A
A
A
I/O
I/O
A
A
I/O
I/O
I/O
I/O
D
A
D
A
A
V
V
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
V
V
V
V
V
V
V
V
IN
IN
IN
IN
-
+
-
+
-
+
-
+
© 2007 Microchip Technology Inc.
IN
IN
IN
IN
-
+
-
+
-
+
-
+
C1
C2
C1
C2
C1
C2
C1
C2
C1OUT
C2OUT
Off
C2OUT
Off
Off
C1OUT
C2OUT
(1)
(1)
(1)