English
Language : 

PIC16F882_09 Datasheet, PDF (47/328 Pages) Microchip Technology – 28/40/44-Pin, Enhanced Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F882/883/884/886/887
3.2.3.6 RA5/AN4/SS/C2OUT
Figure 3-6 shows the diagram for this pin. This pin is
configurable to function as one of the following:
• a general purpose I/O
• an analog input for the ADC
• a slave select input
• a digital output from Comparator C2
FIGURE 3-6:
BLOCK DIAGRAM OF RA5
Data Bus
DQ
WR
PORTA
CK Q
WR
TRISA
DQ
CK Q
RD
TRISA
C2OUT
Enable
C2OUT 1
0
VDD
I/O Pin
VSS
Analog(1)
Input Mode
RD
PORTA
To SS Input
To A/D Converter
Note 1: ANSEL determines Analog Input mode.
3.2.3.7 RA6/OSC2/CLKOUT
Figure 3-7 shows the diagram for this pin. This pin is
configurable to function as one of the following:
• a general purpose I/O
• a crystal/resonator connection
• a clock output
FIGURE 3-7:
BLOCK DIAGRAM OF RA6
Data Bus
WR
PORTA
DQ
CK Q
WR
TRISA
DQ
CK Q
RD
TRISA
Oscillator
Circuit
OSC2
CLKOUT
Enable
FOSC/4 1
0
CLKOUT
Enable
INTOSCIO/
EXTRCIO/EC(1)
CLKOUT
Enable
VDD
I/O Pin
VSS
RD
PORTA
Note 1: With I/O option.
© 2009 Microchip Technology Inc.
DS41291F-page 45