欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC16F630-I/ST 参数 Datasheet PDF下载

PIC16F630-I/ST图片预览
型号: PIC16F630-I/ST
PDF下载: 下载PDF文件 查看货源
内容描述: 14引脚基于闪存的8位CMOS微控制器 [14-Pin FLASH-Based 8-Bit CMOS Microcontrollers]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 130 页 / 1924 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F630-I/ST的Datasheet PDF文件第24页浏览型号PIC16F630-I/ST的Datasheet PDF文件第25页浏览型号PIC16F630-I/ST的Datasheet PDF文件第26页浏览型号PIC16F630-I/ST的Datasheet PDF文件第27页浏览型号PIC16F630-I/ST的Datasheet PDF文件第29页浏览型号PIC16F630-I/ST的Datasheet PDF文件第30页浏览型号PIC16F630-I/ST的Datasheet PDF文件第31页浏览型号PIC16F630-I/ST的Datasheet PDF文件第32页  
PIC16F630/676  
3.3.2  
RC4 AND RC5  
3.3  
PORTC  
The RC4 and RC5 pins are configurable to function as  
a general purpose I/Os.  
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.  
FIGURE 3-7:  
BLOCK DIAGRAM OF RC4  
AND RC5 PINS  
Data bus  
Note: 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.  
VDD  
D
Q
Q
WR  
PORTC  
CK  
I/O Pin  
EXAMPLE 3-2:  
INITIALIZING PORTC  
D
Q
Q
bcf  
STATUS,RP0  
;Bank 0  
;Init PORTC  
;Bank 1  
;digital I/O  
;Set RC<3:2> as inputs  
;and set RC<5:4,1:0>  
;as outputs  
WR  
TRISC  
CK  
clrf  
bsf  
clrf  
movlw  
movwf  
PORTC  
STATUS,RP0  
ANSEL  
0Ch  
TRISC  
VSS  
RD  
TRISC  
RD  
PORTC  
bcf  
STATUS,RP0  
;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  
Data bus  
VDD  
D
Q
Q
WR  
PORTC  
CK  
I/O Pin  
D
Q
Q
WR  
TRISC  
CK  
VSS  
Analog Input  
Mode  
RD  
TRISC  
RD  
PORTC  
To A/D Converter  
DS40039E-page 26  
© 2007 Microchip Technology Inc.  
 复制成功!