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

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
PIC16C781/782
FIGURE 12-4:
EXAMPLE 12-2:
;*
;*
;*
FIGURE 12-5:
DS41171A-page 96
INPUT
VOLTAGE REFERENCE
This code block will configure Comparator
input on AN7, and Reference from the DAC
BANKSEL
BSF
BSF
BANKSEL
CLRF
MOVLW
MOVWF
MOVLW
MOVWF
MOVLW
MOVWF
C1 for normal speed and output polarity,
INPUT
TRISA
TRISB,RB3
ANSEL,AN7
DACON0
DAC
B’10000000’ ; Enable, no out
DACON0
DAC_VALUE
DAC
B’10001111’ ; C1; no out,
CM1CON0
RB3/AN7/OPA
CONFIGURATION OF COMPARATOR C1 WITH DAC
PROGRAMMING C1 FOR
PSMC FEEDBACK
WINDOW COMPARATOR WITH INTERRUPT
; Select Bank 1
; RB3 as input
; Set RB3 as analog
; Select Bank 2
; DAC=00h
; DACREF = VDD
; Trip Level
; VREF1, AN7
V
V
REF
REF
AN4
2
1
V
DAC
+
-
DAC
Preliminary
C1
PIC16C78X
+
+
-
-
C2
C1
12.2.3
To form a low power window comparator, Comparators
C1 & C2 are configured as follows:
• Common input RB0/INT/AN4/V
• Separate external reference voltages
• Programmed for slow speed operation
In addition, the output of comparator C2 must be
inverted for common polarity with C1.
A block diagram of the window comparator with exter-
nal connections is shown in Figure 12-4.
PIC16C78X
C1POL = 0
EXAMPLE: LOW POWER WINDOW
COMPARATOR WITH INTERRUPT
C1OUT
CLPOL=1
2001 Microchip Technology Inc.
CM2CON1<6>
CLPOL=0
CM2CON1<7>
PSMC
REF

Related parts for PIC16C782/JW