PIC16F676 Microchip Technology Inc., PIC16F676 Datasheet - Page 28

no-image

PIC16F676

Manufacturer Part Number
PIC16F676
Description
14-pin, Flash-based 8-bit Cmos Microcontroller
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F676
Manufacturer:
台湾明智类比
Quantity:
20 000
Part Number:
PIC16F676-1/SL
Quantity:
980
Part Number:
PIC16F676-1/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F676-E/SL
Manufacturer:
MICROCHIP
Quantity:
2 500
Part Number:
PIC16F676-E/SL
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16F676-E/ST
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16F676-E/ST
Manufacturer:
EtronTech
Quantity:
101
Part Number:
PIC16F676-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F676-I/P
0
Company:
Part Number:
PIC16F676-I/P
Quantity:
3 000
Company:
Part Number:
PIC16F676-I/P
Quantity:
6 000
Part Number:
PIC16F676-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F676-I/SL
0
Part Number:
PIC16F676-I/ST
Manufacturer:
MICROCHIP
Quantity:
1
Part Number:
PIC16F676-I/ST
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16F630/676
3.3
PORTC is a general purpose I/O port consisting of 6 bi-
directional pins. The pins can be configured for either
digital I/O or analog input to A/D converter. For specific
information about individual functions such as the
comparator or the A/D, refer to the appropriate section
in this Data Sheet.
EXAMPLE 3-2:
3.3.1
The RC0/RC1/RC2/RC3 pins are configurable to
function as one of the following:
• a general purpose I/O
• an analog input for the A/D Converter
FIGURE 3-6:
DS40039E-page 26
PORTC
PORTC
TRISC
TRISC
bcf
clrf
bsf
clrf
movlw
movwf
bcf
Data bus
WR
WR
Note:
(PIC16F676 only)
RD
RD
PORTC
D
D
STATUS,RP0
PORTC
STATUS,RP0
ANSEL
0Ch
TRISC
STATUS,RP0
To A/D Converter
CK
CK
The ANSEL register (91h) must be clear to
configure an analog channel as a digital
input. Pins configured as analog inputs will
read ‘0’. The ANSEL register is defined for
the PIC16F676.
RC0/AN4, RC1/AN5, RC2/AN6, RC3/
AN7
Q
Q
Q
Q
INITIALIZING PORTC
BLOCK DIAGRAM OF
RC0/RC1/RC2/RC3 PINs
Analog Input
;Bank 0
;Init PORTC
;Bank 1
;digital I/O
;Set RC<3:2> as inputs
;and set RC<5:4,1:0>
;as outputs
;Bank 0
Mode
V
V
DD
SS
I/O Pin
3.3.2
The RC4 and RC5 pins are configurable to function as
a general purpose I/Os.
FIGURE 3-7:
PORTC
PORTC
TRISC
TRISC
Data bus
WR
WR
RD
RD
D
D
CK
CK
RC4 AND RC5
Q
Q
Q
Q
BLOCK DIAGRAM OF RC4
AND RC5 PINS
© 2007 Microchip Technology Inc.
V
V
DD
SS
I/O Pin

Related parts for PIC16F676