PIC16LC771-I/SS Microchip Technology, PIC16LC771-I/SS Datasheet - Page 113

IC MCU OTP 4KX14 A/D PWM 20SSOP

PIC16LC771-I/SS

Manufacturer Part Number
PIC16LC771-I/SS
Description
IC MCU OTP 4KX14 A/D PWM 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16LC771-I/SS

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Oscillator Type
Internal
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
15
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 6x12b
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SSOP
Controller Family/series
PIC16LC
No. Of I/o's
15
Eeprom Memory Size
256Byte
Ram Memory Size
256Byte
Cpu Speed
20MHz
Core
PIC
Processor Series
PIC16LC
Data Bus Width
8 bit
Maximum Clock Frequency
20 MHz
Data Ram Size
256 B
Data Rom Size
256 B
On-chip Adc
6
Number Of Programmable I/os
16
Number Of Timers
3 bit
Operating Supply Voltage
2.5 V to 5.5 V
Mounting Style
SMD/SMT
Height
1.75 mm
Interface Type
I2C, SPI, SSP
Length
7.2 mm
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Supply Voltage (max)
5.5 V
Supply Voltage (min)
2.5 V
Width
5.3 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
Other names
PIC16LC771I/SS
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 PIC16LC771-I/SS