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

PIC16F688-I/ST 参数 Datasheet PDF下载

PIC16F688-I/ST图片预览
型号: PIC16F688-I/ST
PDF下载: 下载PDF文件 查看货源
内容描述: 14引脚基于闪存的8位CMOS微控制器采用纳瓦技术 [14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器
文件页数/大小: 202 页 / 3832 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F688-I/ST的Datasheet PDF文件第40页浏览型号PIC16F688-I/ST的Datasheet PDF文件第41页浏览型号PIC16F688-I/ST的Datasheet PDF文件第42页浏览型号PIC16F688-I/ST的Datasheet PDF文件第43页浏览型号PIC16F688-I/ST的Datasheet PDF文件第45页浏览型号PIC16F688-I/ST的Datasheet PDF文件第46页浏览型号PIC16F688-I/ST的Datasheet PDF文件第47页浏览型号PIC16F688-I/ST的Datasheet PDF文件第48页  
PIC16F688  
EXAMPLE 4-3:  
INITIALIZING PORTC  
4.3  
PORTC  
BANKSELPORTC  
;
PORTC is a general purpose I/O port consisting of 6  
bidirectional pins. The pins can be configured for either  
digital I/O or analog input to A/D converter or compara-  
tor. For specific information about individual functions  
such as the EUSART or the A/D converter, refer to the  
appropriate section in this data sheet.  
CLRF  
MOVLW  
MOVWF  
PORTC  
07h  
CMCON0  
;Init PORTC  
;Set RC<4,1:0> to  
;digital I/O  
;
;digital I/O  
;Set RC<3:2> as inputs  
;and set RC<5:4,1:0>  
;as outputs  
BANKSELANSEL  
CLRF  
MOVLW  
MOVWF  
ANSEL  
0Ch  
TRISC  
Note:  
The ANSEL and CMCON0 registers must  
be initialized to configure an analog  
channel as a digital input. Pins configured  
as analog inputs will read ‘0’.  
REGISTER 4-6:  
PORTC: PORTC REGISTER  
U-0  
U-0  
R/W-x  
RC5  
R/W-x  
RC4  
R/W-0  
RC3  
R/W-0  
RC2  
R/W-0  
RC1  
R/W-0  
RC0  
bit 7  
bit 0  
Legend:  
R = Readable bit  
-n = Value at POR  
W = Writable bit  
‘1’ = Bit is set  
U = Unimplemented bit, read as ‘0’  
‘0’ = Bit is cleared x = Bit is unknown  
bit 7-6  
bit 5-0  
Unimplemented: Read as ‘0’  
RC<5:0>: PORTC I/O Pin bit  
1= PORTC pin is > VIH  
0= PORTC pin is < VIL  
REGISTER 4-7:  
TRISC: PORTC TRI-STATE REGISTER  
U-0  
U-0  
R/W-1  
R/W-1  
R/W-1  
R/W-1  
R/W-1  
R/W-1  
TRISC5  
TRISC4  
TRISC3  
TRISC2  
TRISC1  
TRISC0  
bit 7  
bit 0  
Legend:  
R = Readable bit  
-n = Value at POR  
W = Writable bit  
‘1’ = Bit is set  
U = Unimplemented bit, read as ‘0’  
‘0’ = Bit is cleared x = Bit is unknown  
bit 7-6  
bit 5-0  
Unimplemented: Read as ‘0’  
TRISC<5:0>: PORTC Tri-State Control bits  
1= PORTC pin configured as an input (tri-stated)  
0= PORTC pin configured as an output  
DS41203C-page 42  
© 2007 Microchip Technology Inc.  
 复制成功!