PIC16C782/JW Microchip Technology, PIC16C782/JW Datasheet - Page 97

IC MCU EPROM 2KX14 COMP 20CDIP

PIC16C782/JW

Manufacturer Part Number
PIC16C782/JW
Description
IC MCU EPROM 2KX14 COMP 20CDIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C782/JW

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
EPROM, UV
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x8b; D/A 1x8b
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
20-CDIP (0.300", 7.62mm) Window
For Use With
DVA16XP202 - ADAPTER DEVICE PIC16C781/782DM163012 - BOARD DEMO PICDEM FOR 16C781/782AC164028 - MODULE SKT PROMATEII 20SOIC/DIP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Connectivity
-
Other names
Q1137459

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C782/JW
Manufacturer:
AD
Quantity:
580
12.2
The following examples show the use of the Compara-
tor module in:
• A simple voltage comparator configuration syn-
• A comparator input to the PSMC with a program-
• A low power window comparator configuration
FIGURE 12-3:
EXAMPLE 12-1:
;*
;*
;*
;*
;*
chronized to the Timer 1 clock input.
mable DAC reference.
with interrupt-on-change.
2001 Microchip Technology Inc.
INPUT
External Reference
External Oscillator
for normal speed and output polarity,
input on AN6, Reference from VREF2, and
output synchronization to TMR1 clock.
BANKSEL TRISA
BSF
BSF
BSF
BSF
BSF
BANKSEL CM2CON0
MOVLW
MOVWF
BSF
This code block will configure C2
Comparator Configuration
RA6/OSC2/CLKOUT/T1CKI
TRISA,RA2
TRISA,RA6
TRISB,RB2
ANSEL,AN2
ANSEL,AN6
B’10001010’
CM2CON0
CM2CON1,C2SYNC ; CLK sync
RA2/AN2/V
COMPARATOR C2 CONFIGURATION WITH OUTPUT SYNCHRONIZED TO T1CKI
C2 CONFIGURATION
PROGRAM
RB2/AN6
; Select Bank 1
; RA2 as input
; RA6 as input
; RB2 as input
; AN2 as analog
; AN6 as analog
; Select Bank 2
; Set C2; no out
; VREF2, AN6
REF
2
Preliminary
-
+
C2
PIC16C78X
12.2.1
In this example, Comparator C2 is configured as a nor-
mal voltage comparator synchronized to the T1CKI
input. A block diagram of the comparator with external
connections is shown in Figure 12-2.
12.2.2
In this example, Comparator C1 is configured as a non-
inverting normal speed voltage comparator input to the
PSMC, with a programmable reference voltage. A
block diagram of the comparator with external connec-
tions is shown in Figure 12-3.
C2POL
EXAMPLE: C2 SYNCHRONIZED TO
T1CKI
EXAMPLE: C1 INPUT TO PSMC W/
DAC AS REFERENCE
PIC16C781/782
D
CK
Q
Q
CM2CON0<6>
DS41171A-page 95

Related parts for PIC16C782/JW