PIC16C781-I/P Microchip Technology, PIC16C781-I/P Datasheet - Page 97

IC MCU OTP 1KX14 W/AD COMP 20DIP

PIC16C781-I/P

Manufacturer Part Number
PIC16C781-I/P
Description
IC MCU OTP 1KX14 W/AD COMP 20DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C781-I/P

Core Size
8-Bit
Program Memory Size
1.75KB (1K x 14)
Core Processor
PIC
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Type
OTP
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
-40°C ~ 85°C
Package / Case
20-DIP (0.300", 7.62mm)
Controller Family/series
PIC16C
No. Of I/o's
16
Ram Memory Size
128Byte
Cpu Speed
20MHz
No. Of Timers
3
Processor Series
PIC16C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
16
Number Of Timers
2
Operating Supply Voltage
2.5 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000, DM163022
Minimum Operating Temperature
- 40 C
On-chip Adc
8 bit
On-chip Dac
8 bit, 1 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMINGDVA16XP202 - ADAPTER DEVICE PIC16C781/782DM163012 - BOARD DEMO PICDEM FOR 16C781/782AC164028 - MODULE SKT PROMATEII 20SOIC/DIP
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
Other names
PIC16C781I/P
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 PIC16C781-I/P