Web Analytics
Datasheet 搜索 > 微控制器 > Microchip(微芯) > PIC18F4685-E/ML 数据手册 > PIC18F4685-E/ML 数据手册 146/484 页
PIC18F4685-E/ML
器件3D模型
¥ 34.818
导航目录
PIC18F4685-E/ML数据手册
Page:
of 484 Go
若手册格式错乱,请下载阅览PDF原文件
PIC18F2682/2685/4682/4685
DS39761B-page 144 Preliminary © 2007 Microchip Technology Inc.
10.6 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
controlled by the 4 upper bits of the TRISE register
(Register 10-1). Setting control bit, PSPMODE
(TRISE<4>), enables PSP operation, as long as the
Enhanced CCP1 (ECCP1) 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.
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 config-
ured as inputs (set). The A/D port configuration bits,
PFCG3:PFCG0 (ADCON1<3:0>), must also be set to
1010’.
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.
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.
When either the CS
or RD line is 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.
The timing for the control signals in Write and Read
modes is shown in Figure 10-3 and Figure 10-4,
respectively.
FIGURE 10-2: PORTD AND PORTE
BLOCK DIAGRAM
(PARALLEL SLAVE PORT)
Note: The Parallel Slave Port is only available on
PIC18F4682/4685 devices.
Data Bus
WR LATD or
RDx pin
QD
CK
EN
QD
EN
RD PORTD
One bit of PORTD
Set Interrupt Flag
PSPIF (PIR1<7>)
Read
Chip
Write
RD
CS
WR
TTL
TTL
TTL
TTL
WR PORTD
RD LATD
Data Latch
Note: I/O pins have diode protection to VDD and VSS.
PORTE Pins
Select

PIC18F4685-E/ML 数据手册

Microchip(微芯)
484 页 / 7.96 MByte
Microchip(微芯)
56 页 / 0.37 MByte
Microchip(微芯)
8 页 / 0.22 MByte
Microchip(微芯)
2 页 / 0.11 MByte

PIC18F4685 数据手册

Microchip(微芯)
PIC18F2682/2685/4682/4685 8 位闪存微控制器### PIC18 微控制器
Microchip(微芯)
MICROCHIP  PIC18F4685-I/P  微控制器, 8位, 闪存, PIC18F4xxx, 40 MHz, 96 KB, 3.32 KB, 40 引脚, DIP
Microchip(微芯)
PIC18F2682/2685/4682/4685 8 位闪存微控制器### PIC18 微控制器
Microchip(微芯)
PIC18F2682/2685/4682/4685 8 位闪存微控制器### PIC18 微控制器
Microchip(微芯)
PIC18 系列 3328 B RAM 96 kB 闪存 8位 增强型 微控制器 - TQFP-44
Microchip(微芯)
28 /40/ 44引脚增强型闪存微控制器与ECAN技术, 10位A / D和纳瓦技术 28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Microchip(微芯)
PIC 40MHz 闪存:48K@x16bit RAM:3.25KB
Microchip(微芯)
PIC18 系列 3328 B RAM 96 kB 闪存 8位 微控制器 - QFN-44
Microchip(微芯)
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件