PIC16F688-I/STG Microchip Technology, PIC16F688-I/STG Datasheet - Page 72

no-image

PIC16F688-I/STG

Manufacturer Part Number
PIC16F688-I/STG
Description
IC PIC MCU FLASH 4KX14 14TSSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F688-I/STG

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
7KB (4K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
14-TSSOP
For Use With
XLT14SS-1 - SOCKET TRANSITION 14DIP/14SSOPAC162061 - HEADER INTRFC MPLAB ICD2 20PINAC162056 - HEADER INTERFACE ICD2 16F688
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC16F688
EXAMPLE 8-1:
DS41203E-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
© 2009 Microchip Technology Inc.

Related parts for PIC16F688-I/STG