PIC16F688-I/SL Microchip Technology Inc., PIC16F688-I/SL Datasheet - Page 72

no-image

PIC16F688-I/SL

Manufacturer Part Number
PIC16F688-I/SL
Description
14 PIN, 7 KB FLASH, 256 RAM, 12 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F688-I/SL

A/d Inputs
8-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
12
Interface
USART
Memory Type
Flash
Number Of Bits
8
Package Type
14-pin SOIC-N
Programmable Memory
7K Bytes
Ram Size
256 Bytes
Speed
20 MHz
Timers
1-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F688-I/SL
Manufacturer:
MICROCHIP
Quantity:
4 952
Part Number:
PIC16F688-I/SL
Manufacturer:
Microchip Technology
Quantity:
27 564
Part Number:
PIC16F688-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F688-I/SL
0
PIC16F688
EXAMPLE 8-1:
DS41203C-page 70
;This code block configures the ADC
;for polling, Vdd reference, Frc clock
;and AN0 input.
;
;Conversion start & polling for completion
; are included.
;
BANKSEL ADCON1
MOVLW
MOVWF
BANKSEL TRISA
BSF
BANKSEL ANSEL
BSF
BANKSEL ADCON0
MOVLW
MOVWF
CALL
BSF
BTFSC
GOTO
BANKSEL ADRESH
MOVF
MOVWF
BANKSEL ADRESL
MOVF
MOVWF
B’01110000’ ;ADC Frc clock
ADCON1
TRISA,0
ANSEL,0
B’10000001’ ;Right justify,
ADCON0
SampleTime
ADCON0,GO
ADCON0,GO
$-1
ADRESH,W
RESULTHI
ADRESL,W
RESULTLO
A/D CONVERSION
;
;
;
;Set RA0 to input
;
;Set RA0 to analog
;
;Vdd Vref, AN0, On
;Acquisiton delay
;Start conversion
;Is conversion done?
;No, test again
;
;Read upper 2 bits
;store in GPR space
;
;Read lower 8 bits
;Store in GPR space
© 2006 Microchip Technology Inc.

Related parts for PIC16F688-I/SL