PIC16F785-I/P Microchip Technology Inc., PIC16F785-I/P Datasheet - Page 67

no-image

PIC16F785-I/P

Manufacturer Part Number
PIC16F785-I/P
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 18 I/O, DIP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F785-I/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
17
Memory Type
Flash
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
REGISTER 9-1:
© 2006 Microchip Technology Inc.
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1-0
CM1CON0: COMPARATOR C1 CONTROL REGISTER 0 (ADDRESS: 119h)
bit 7
C1ON: Comparator C1 Enable bit
1 = C1 Comparator is enabled
0 = C1 Comparator is disabled
C1OUT: Comparator C1 Output bit
If C1POL = 1 (inverted polarity):
If C1POL = 0 (non-inverted polarity):
C1OE: Comparator C1 Output Enable bit
1 = C1OUT is present on the RA2/AN2/T0CKI/INT/C1OUT pin
0 = C1OUT is internal only
C1POL: Comparator C1 Output Polarity Select bit
1 = C1OUT logic is inverted
0 = C1OUT logic is not inverted
C1SP: Comparator C1 Speed Select bit
1 = C1 operates in normal speed mode
0 = C1 operates in low-power, slow speed mode
C1R: Comparator C1 Reference Select bit (non-inverting input)
1 = C1VP connects to C1V
0 = C1VP connects to RA0/AN0/C1IN+/ICSPDAT
C1CH<1:0>: Comparator C1 Channel Select bits
00 = C1VN of C1 connects to RA1/AN1/C12IN0-/V
01 = C1VN of C1 connects to RC1/AN5/C12IN1-/PH1
10 = C1VN of C1 connects to RC2/AN6/C12IN2-/OP2
11 = C1VN of C1 connects to RC3/AN7/C12IN3-/OP1
Legend:
R = Readable bit
-n = Value at POR
R/W-0
C1ON
Note 1: C1OUT will only drive RA2/AN2/T0CKI/INT/C1OUT if: (C1OE = 1) and (C1ON = 1)
C1OUT = 1, C1VP < C1VN
C1OUT = 0, C1VP > C1VN
C1OUT = 1, C1VP > C1VN
C1OUT = 0, C1VP < C1VN
and (TRISA<2> = 0).
C1OUT
R-0
R/W-0
C1OE
REF
Preliminary
W = Writable bit
‘1’ = Bit is set
output
C1POL
R/W-0
R/W-0
PIC16F785/HV785
C1SP
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
REF
/ICSPCLK
R/W-0
(1)
C1R
x = Bit is unknown
C1CH1
R/W-0
DS41249D-page 65
C1CH0
R/W-0
bit 0

Related parts for PIC16F785-I/P