PIC16C770-I/SO Microchip Technology, PIC16C770-I/SO Datasheet - Page 113

IC MCU OTP 2KX14 A/D PWM 20-SOIC

PIC16C770-I/SO

Manufacturer Part Number
PIC16C770-I/SO
Description
IC MCU OTP 2KX14 A/D PWM 20-SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C770-I/SO

Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI
Number Of I /o
15
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 6x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
16
Ram Memory Size
256Byte
Cpu Speed
20MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMINGAC164028 - MODULE SKT PROMATEII 20SOIC/DIP309-1013 - ADAPTER 20-SOIC TO 20-DIP309-1012 - ADAPTER 20-SOIC TO 20-DIP
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16C770I/SO
11.4
Example 11-1 shows an example that performs an A/D
conversion. The port pins are configured as analog
inputs. The analog reference V
and the analog reference V
The A/D interrupt is enabled and the A/D conversion
clock is T
channel.
EXAMPLE 11-1: PERFORMING AN A/D CONVERSION
;
; Ensure that the required sampling time for the
; selected input channel has lapsed. Then the
; conversion may be started.
; Wait for A/D completion and read ADRESH:ADRESL for result.
2002 Microchip Technology Inc.
BSF
CLRF
MOVLW
MOVWF
MOVWF
BSF
BCF
MOVLW
MOVWF
BCF
BSF
BSF
BSF
A/D Conversions
RC
. The conversion is performed on the AN0
STATUS, RP0
ADCON1
0x01
ANSEL
TRISA
PIE1, ADIE
STATUS, RP0
0xC1
ADCON0
PIR1, ADIF
INTCON, PEIE
INTCON, GIE
ADCON0, GO
:
:
REF
REF
;Select Bank 1
;Configure A/D Voltage Reference
;disable AN0 digital input buffer
;RA0 is input mode
;Enable A/D interrupt
;Select Bank 0
;RC clock, A/D is on,
;Ch 0 is selected
;
;Clear A/D Int Flag
;Enable Peripheral
;Enable All Interrupts
;Start A/D Conversion
;The ADIF bit will be
;set and the GO/DONE bit
;cleared upon completion-
;of the A/D conversion.
- is the device AV
+ is the device AV
SS
DD
.
PIC16C717/770/771
DS41120B-page 111

Related parts for PIC16C770-I/SO