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

PIC18F8620-I/PT 参数 Datasheet PDF下载

PIC18F8620-I/PT图片预览
型号: PIC18F8620-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 八十〇分之六十四引脚高性能1 Mbit的增强型闪存微控制器与A / D [64/80-Pin High Performance 1 Mbit Enhanced FLASH Microcontrollers with A/D]
分类和应用: 闪存微控制器和处理器外围集成电路PC时钟
文件页数/大小: 366 页 / 6797 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F8620-I/PT的Datasheet PDF文件第107页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第108页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第109页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第110页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第112页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第113页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第114页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第115页  
PIC18FXX20  
The pin override value is not loaded into the TRIS reg-  
ister. This allows read-modify-write of the TRIS register,  
without concern due to peripheral overrides.  
RC1 is normally configured by configuration bit,  
CCP2MX, as the default peripheral pin of the CCP2  
module (default/erased state, CCP2MX = 1).  
10.3 PORTC, TRISC and LATC  
Registers  
PORTC is an 8-bit wide, bi-directional port. The corre-  
sponding Data Direction register is TRISC. Setting a  
TRISC bit (= 1) will make the corresponding PORTC  
pin an input (i.e., put the corresponding output driver in  
a High-Impedance mode). Clearing a TRISC bit (= 0)  
will make the corresponding PORTC pin an output (i.e.,  
put the contents of the output latch on the selected pin).  
The Data Latch register (LATC) is also memory  
mapped. Read-modify-write operations on the LATC  
register, read and write the latched output value for  
PORTC.  
PORTC is multiplexed with several peripheral functions  
(Table 10-5). PORTC pins have Schmitt Trigger input  
buffers.  
When enabling peripheral functions, care should be  
taken in defining TRIS bits for each PORTC pin. Some  
peripherals override the TRIS bit to make a pin an out-  
put, while other peripherals override the TRIS bit to  
make a pin an input. The user should refer to the corre-  
sponding peripheral section for the correct TRIS bit  
settings.  
EXAMPLE 10-3:  
INITIALIZING PORTC  
; Initialize PORTC by  
; clearing output  
; data latches  
CLRF  
PORTC  
CLRF  
LATC  
; Alternate method  
; to clear output  
; data latches  
MOVLW 0xCF  
; Value used to  
; initialize data  
; direction  
MOVWF TRISC  
; Set RC<3:0> as inputs  
; RC<5:4> as outputs  
; RC<7:6> as inputs  
Note: On a Power-on Reset, these pins are  
configured as digital inputs.  
FIGURE 10-8:  
PORTC BLOCK DIAGRAM (PERIPHERAL OUTPUT OVERRIDE)  
PORTC/Peripheral Out Select  
Peripheral Data Out  
VDD  
P
0
1
RD LATC  
Data Bus  
D
Q
Q
(1)  
I/O pin  
or  
WR LATC  
CK  
WR PORTC  
Data Latch  
TRIS OVERRIDE  
N
D
Q
Q
Pin  
Override  
Peripheral  
VSS  
TRIS  
Override  
Logic  
WR TRISC  
CK  
RC0  
Yes  
Timer1 OSC for  
Timer1/Timer3  
Timer1 OSC for  
Timer1/Timer3,  
CCP2 I/O  
TRIS Latch  
RC1  
Yes  
RD TRISC  
Schmitt  
Trigger  
Peripheral Output  
RC2  
RC3  
Yes  
Yes  
CCP1 I/O  
(2)  
Enable  
2
Q
D
SPI/I C  
Master Clock  
EN  
2
RC4  
RC5  
RC6  
Yes  
Yes  
Yes  
I C Data Out  
RD PORTC  
SPI Data Out  
USART1 Async  
Xmit, Sync Clock  
USART1 Sync  
Data Out  
Peripheral Data In  
Note 1: I/O pins have diode protection to VDD and VSS.  
2: Peripheral Output Enable is only active if peripheral select is active.  
RC7  
Yes  
2003 Microchip Technology Inc.  
Advance Information  
DS39609A-page 109  
 复制成功!