PIC16CE625-04I/SO Microchip Technology, PIC16CE625-04I/SO Datasheet - Page 43

IC MCU OTP 2KX14 EE COMP 18SOIC

PIC16CE625-04I/SO

Manufacturer Part Number
PIC16CE625-04I/SO
Description
IC MCU OTP 2KX14 EE COMP 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet

Specifications of PIC16CE625-04I/SO

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Eeprom Size
128 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MIL309-1075 - ADAPTER 18-SOIC TO 18-SOICAC164010 - MODULE SKT PROMATEII DIP/SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Connectivity
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16CE625-04I/SO
Manufacturer:
MICROCHI
Quantity:
11
The code example in Example 8-1 depicts the steps
required to configure the comparator module. RA3 and
RA4 are configured as digital output. RA0 and RA1 are
configured as the V- inputs and RA2 as the V+ input to
both comparators.
EXAMPLE 8-1:
8.2
A single comparator is shown in Figure 8-2 along with
the relationship between the analog input levels and
the digital output. When the analog input at V
than the analog input V
comparator is a digital low level. When the analog input
at V
of the comparator is a digital high level. The shaded
areas of the output of the comparator in Figure 8-2
represent the uncertainty due to input offsets and
response time.
FLAG_REG EQU
CLRF
CLRF
MOVF
ANDLW
IORWF
MOVLW
MOVWF
BSF
MOVLW
MOVWF
BCF
CALL
MOVF
BCF
BSF
BSF
BCF
BSF
BSF
1999 Microchip Technology Inc.
IN
+ is greater than the analog input V
FLAG_REG
PORTA
CMCON,W
0xC0
FLAG_REG,F
0x03
CMCON
STATUS,RP0
0x07
TRISA
STATUS,RP0
DELAY 10
CMCON,F
PIR1,CMIF
STATUS,RP0
PIE1,CMIE
STATUS,RP0
INTCON,PEIE ;Enable peripheral interrupts
INTCON,GIE
Comparator Operation
INITIALIZING
COMPARATOR MODULE
0X20
;Init flag register
;Init PORTA
;Move comparator contents to W
;Mask comparator bits
;Store bits in flag register
;Init comparator mode
;CM<2:0> = 011
;Select Bank1
;Initialize data direction
;Set RA<2:0> as inputs
;RA<4:3> as outputs
;TRISA<7:5> always read ‘0’
;Select Bank 0
;10 s delay
;Read CMCON to end change condition
;Clear pending interrupts
;Select Bank 1
;Enable comparator interrupts
;Select Bank 0
;Global interrupt enable
IN
–, the output of the
IN
–, the output
IN
+ is less
8.3
An external or internal reference signal may be used
depending on the comparator operating mode. The
analog signal that is present at V
signal at V
is adjusted accordingly (Figure 8-2).
FIGURE 8-2:
8.3.1
When external voltage references are used, the
comparator module can be configured to have the com-
parators operate from the same or different reference
sources. However, threshold detector applications may
require the same reference. The reference signal must
be between V
pin of the comparator(s).
8.3.2
The comparator module also allows the selection of an
internally
comparators. Section 13, Instruction Sets, contains a
detailed description of the Voltage Reference Module
that provides this signal. The internal reference signal
is used when the comparators are in mode
CM<2:0>=010 (Figure 8-1). In this mode, the internal
voltage reference is applied to the V
comparators.
Output
Output
V
V
V
V
IN
IN
IN–
IN+
+
V
V
IN
IN
Comparator Reference
EXTERNAL REFERENCE SIGNAL
INTERNAL REFERENCE SIGNAL
+
IN
generated
+, and the digital output of the comparator
SS
and V
SINGLE COMPARATOR
PIC16CE62X
+
DD
voltage
and can be applied to either
IN
reference
– is compared to the
DS40182C-page 43
IN
Output
+ pin of both
for
the

Related parts for PIC16CE625-04I/SO