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

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
PIC16C781/782
FIGURE 9-2:
9.4
Example 9-2 demonstrates an ADC conversion. The
RA0/AN0 pin is configured as the analog input. The ref-
erence voltage selected is the device AV
interrupt is enabled, and the ADC conversion clock is
ADRC.
Clearing the GO/DONE bit during a conversion aborts
the current conversion. The ADRES register is NOT
updated with the partially completed ADC conversion
sample. That is, the ADRES register continues to con-
tain the value of the last completed conversion (or the
last value written to the ADRES register). After the ADC
conversion is aborted, a 2T
before the next acquisition is started. After this 2T
wait period, an acquisition is automatically started on
the selected channel.
DS41171A-page 74
ADC Configuration and
Conversion
Legend: C
VA
ANALOG INPUT MODEL
R
V
I
R
SS
C
S
LEAKAGE
T
PIN
IC
HOLD
AD
ANx
CPIN
5 pF
wait period is required
= input capacitance
= threshold voltage
= leakage current at the pin due to
= interconnect resistance
= sampling switch
= sample/hold capacitance (from DAC)
various junctions
DD
. The ADC
V
DD
V
V
T
T
Preliminary
= 0.6V
= 0.6V
AD
I
± 500 nA
LEAKAGE
EXAMPLE 9-2:
;********************************************
;*
;*
;*
;*
;*
;*
;*
;********************************************
;*
;*
;*
ADC_CNVRT
ADC_CN_LOOP
R
IC
This code block will configure the ADC
Conversion start & wait for complete
for polling, AVDD as reference, RC clock
and RA0 input.
polling code included.
minimum acquisition delay from
configuration.
BANKSEL
CLRF
BSF
BSF
BANKSEL
MOVLW
MOVWF
Start & Wait for ADC complete, assumes
BANKSEL
BSF
BTFSC
GOTO
MOVF
1k
V
SS R
DD
Sampling
Switch
6V
5V
4V
3V
2V
SS
ADCON1
ADCON1
TRISA,0
ANSEL,0
ADCON0
B’11000001’
ADCON0
ADCON0
ADCON0,GO
ADCON0,GO
ADC_CN_LOOP ; If not, wait
ADRES,W
Sampling Switch
5 6 7 8 9 10 11
ADC CONVERSION
V
SS
C
= DAC capacitance
= 51.2 pF
( k
HOLD
2001 Microchip Technology Inc.
)
; Select Bank 1
; AVDD as VREF
; Set RA0 as input
; Set RA0 as analog
; Select Bank0
; RC, Ch 0, ADC on
; Select Bank 0
; Start convert
; Test for end
; Get result

Related parts for PIC16C781-I/P