Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F87 Datasheet(PDF) 113 Page - Microchip Technology

Part # PIC16F87
Description  18/20/28-Pin Enhanced Flash MCUs with nanoWatt Technology
PDF  230 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F87 Datasheet(HTML) 113 Page - Microchip Technology

Back Button PIC16F87 Datasheet HTML 109Page - Microchip Technology PIC16F87 Datasheet HTML 110Page - Microchip Technology PIC16F87 Datasheet HTML 111Page - Microchip Technology PIC16F87 Datasheet HTML 112Page - Microchip Technology PIC16F87 Datasheet HTML 113Page - Microchip Technology PIC16F87 Datasheet HTML 114Page - Microchip Technology PIC16F87 Datasheet HTML 115Page - Microchip Technology PIC16F87 Datasheet HTML 116Page - Microchip Technology PIC16F87 Datasheet HTML 117Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 113 / 230 page
background image
 2002-2013 Microchip Technology Inc.
DS30487D-page 113
PIC16F87/88
12.0
ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
The Analog-to-Digital (A/D) converter module has
seven inputs for 18/20 pin devices (PIC16F88 devices
only).
The conversion of an analog input signal results in a
corresponding 10-bit digital number. The A/D module
has a high and low-voltage reference input that is
software selectable to some combination of VDD, VSS,
VREF- (RA2) or VREF+ (RA3).
The A/D converter has a unique feature of being able
to operate while the device is in Sleep mode. To oper-
ate in Sleep, the A/D conversion clock must be derived
from the A/D’s internal RC oscillator.
The A/D module has five registers:
• A/D Result High Register (ADRESH)
• A/D Result Low Register (ADRESL)
• A/D Control Register 0 (ADCON0)
• A/D Control Register 1 (ADCON1)
• Analog Select Register (ANSEL)
The ADCON0 register, shown in
Register 12-2,
controls the operation of the A/D module. The ANSEL
register, shown in Register 12-1 and the ADCON1
register, shown in Register 12-3, configure the func-
tions of the port pins. The port pins can be configured
as analog inputs (RA3/RA2 can also be voltage
references) or as digital I/O.
Additional information on using the A/D module can be
found in the “PIC® Mid-Range MCU Family Reference
Manual” (DS33023).
REGISTER 12-1:
ANSEL:ANALOG SELECT REGISTER(ADDRESS9Bh)PIC16F88DEVICESONLY
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
—
ANS6
ANS5
ANS4
ANS3
ANS2
ANS1
ANS0
bit 7
bit 0
bit 7
Unimplemented: Read as ‘0’
bit 6-0
ANS<6:0>: Analog Input Select bits
Bits select input function on corresponding AN<6:0> pins.
1
= Analog I/O(1,2)
0
= Digital I/O
Note 1:
Setting a pin to an analog input disables the digital input buffer. The corresponding
TRIS bit should be set to input mode when using pins as analog inputs. Only AN2 is
an analog I/O, all other ANx pins are analog inputs.
2:
See the block diagrams for the analog I/O pins to see how ANSEL interacts with the
CHS bits of the ADCON0 register.
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com