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

PIC18F4580-I/PT 参数 Datasheet PDF下载

PIC18F4580-I/PT图片预览
型号: PIC18F4580-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与ECAN技术, 10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路时钟
文件页数/大小: 490 页 / 8912 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4580-I/PT的Datasheet PDF文件第145页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第146页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第147页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第148页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第150页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第151页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第152页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第153页  
PIC18F2480/2580/4480/4580  
The timing for the control signals in Write and Read  
modes is shown in Figure 11-3 and Figure 11-4,  
respectively.  
11.6 Parallel Slave Port  
Note:  
The Parallel Slave Port is only available on  
PIC18F4X80 devices.  
FIGURE 11-2:  
PORTD AND PORTE  
BLOCK DIAGRAM  
(PARALLEL SLAVE PORT)  
In addition to its function as a general I/O port, PORTD  
can also operate as an 8-bit wide Parallel Slave Port  
(PSP) or microprocessor port. PSP operation is con-  
trolled by the 4 upper bits of the TRISE register  
(Register 11-1). Setting control bit, PSPMODE  
(TRISE<4>), enables PSP operation, as long as the  
Enhanced CCP module is not operating in dual output  
or quad output PWM mode. In Slave mode, the port is  
asynchronously readable and writable by the external  
world.  
One bit of PORTD  
Data Bus  
D
Q
RDx pin  
WR LATD  
or  
WR PORTD  
CK  
Data Latch  
TTL  
The PSP can directly interface to an 8-bit micro-  
processor data bus. The external microprocessor can  
read or write the PORTD latch as an 8-bit latch. Setting  
the control bit PSPMODE enables the PORTE I/O pins  
to become control inputs for the microprocessor port.  
When set, port pin RE0 is the RD input, RE1 is the WR  
input and RE2 is the CS (Chip Select) input. For this  
functionality, the corresponding data direction bits of  
the TRISE register (TRISE<2:0>) must be configured  
as inputs (set). The A/D port Configuration bits,  
PFCG<3:0> (ADCON1<3:0>), must also be set to  
1010’.  
Q
D
RD PORTD  
RD LATD  
EN  
Set Interrupt Flag  
PSPIF (PIR1<7>)  
A write to the PSP occurs when both the CS and WR  
lines are first detected low and ends when either are  
detected high. The PSPIF and IBF flag bits are both set  
when the write ends.  
PORTE Pins  
Read  
RD  
CS  
WR  
TTL  
Chip Select  
TTL  
A read from the PSP occurs when both the CS and RD  
lines are first detected low. The data in PORTD is read  
out and the OBF bit is set. If the user writes new data  
to PORTD to set OBF, the data is immediately read out;  
however, the OBF bit is not set.  
Write  
TTL  
Note:  
I/O pins have diode protection to VDD and VSS.  
When either the CS or RD lines are detected high, the  
PORTD pins return to the input state and the PSPIF bit  
is set. User applications should wait for PSPIF to be set  
before servicing the PSP; when this happens, the IBF  
and OBF bits can be polled and the appropriate action  
taken.  
© 2009 Microchip Technology Inc.  
DS39637D-page 149  
 复制成功!