參數(shù)資料
型號: 16F630
廠商: Microchip Technology Inc.
英文描述: 14-Pin FLASH-Based 8-Bit CMOS Microcontrollers
中文描述: 14引腳基于閃存的8位CMOS微控制器
文件頁數(shù): 28/132頁
文件大小: 2651K
代理商: 16F630
PIC16F630/676
DS40039C-page 26
2003 Microchip Technology Inc.
3.3
PORTC
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:
bcf
clrf
bsf
clrf
movlw
movwf
INITIALIZING PORTC
;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
3.3.1
RC0/AN4, RC1/AN5, RC2/AN6, RC3/
AN7
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
(PIC16F676 only)
FIGURE 3-6:
BLOCK DIAGRAM OF
RC0/RC1/RC2/RC3 PINs
3.3.2
RC4 AND RC5
The RC4 and RC5 pins are configurable to function as
a general purpose I/Os.
FIGURE 3-7:
BLOCK DIAGRAM OF RC4
AND RC5 PINS
Note:
The ANSEL register (9Fh) 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.
STATUS,RP0
PORTC
STATUS,RP0
ANSEL
0Ch
TRISC
bcf
STATUS,RP0
I/O Pin
V
DD
V
SS
D
Q
CK
Q
D
Q
CK
Q
Data bus
WR
PORTC
WR
TRISC
RD
TRISC
To A/D Converter
RD
PORTC
Analog Input
Mode
I/O Pin
V
DD
V
SS
D
Q
CK
Q
D
Q
CK
Q
Data bus
WR
PORTC
WR
TRISC
RD
TRISC
RD
PORTC
相關(guān)PDF資料
PDF描述
16F84 CAT 5E CROSSOVER, BLUE 15 FT PATCH CABLE
16F84A CAT 5E CROSSOVER PATCH CORD CABLE BLUE 20 FT
16F871 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 6 FT
16F872 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 10 FT
16F876A 28/40-pin Enhanced FLASH Microcontrollers
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
16F684-I 制造商:Microchip Technology Inc 功能描述:
16F6H 制造商:EDAL 制造商全稱:EDAL 功能描述:Silicon High Voltage Assembly
16F6H1 制造商:EDAL 制造商全稱:EDAL 功能描述:Silicon High Voltage Assembly
16F7674 制造商:未知廠家 制造商全稱:未知廠家 功能描述:SMD TWEEZER HEAD
16F7676 制造商:未知廠家 制造商全稱:未知廠家 功能描述:CLIP KABELKIT