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

LPC47S45X 参数 Datasheet PDF下载

LPC47S45X图片预览
型号: LPC47S45X
PDF下载: 下载PDF文件 查看货源
内容描述: 先进的I / O与X -Bus接口 [Advanced I/O with X-Bus Interface]
分类和应用:
文件页数/大小: 259 页 / 1575 K
品牌: SMSC [ SMSC CORPORATION ]
 浏览型号LPC47S45X的Datasheet PDF文件第85页浏览型号LPC47S45X的Datasheet PDF文件第86页浏览型号LPC47S45X的Datasheet PDF文件第87页浏览型号LPC47S45X的Datasheet PDF文件第88页浏览型号LPC47S45X的Datasheet PDF文件第90页浏览型号LPC47S45X的Datasheet PDF文件第91页浏览型号LPC47S45X的Datasheet PDF文件第92页浏览型号LPC47S45X的Datasheet PDF文件第93页  
R/W  
MODE  
011: ECP Parallel Port Mode. In the forward direction (direction is 0) bytes placed into the ecpDFifo  
and bytes written to the ecpAFifo are placed in a single FIFO and transmitted automatically to  
the peripheral using ECP Protocol. In the reverse direction (direction is 1) bytes are moved  
from the ECP parallel port and packed into bytes in the ecpDFifo. All drivers have active  
pull-ups (push-pull).  
100: Selects EPP Mode: In this mode, EPP is selected if the EPP supported option is selected in  
configuration register L3-CRF0. All drivers have active pull-ups (push-pull).  
101: Reserved  
110: Test Mode. In this mode the FIFO may be written and read, but the data will not be transmitted  
on the parallel port. All drivers have active pull-ups (push-pull).  
111: Configuration Mode. In this mode the confgA, confgB registers are accessible at 0x400 and  
0x401. All drivers have active pull-ups (push-pull).  
Table 38B  
Table 38C  
CONFIG REG B  
CONFIG REG B  
DMA  
SELECTED  
IRQ SELECTED  
BITS 5:3  
110  
BITS 2:0  
011  
15  
3
14  
101  
2
1
010  
11  
100  
001  
10  
011  
All Others  
000  
9
010  
7
5
001  
111  
All Others  
000  
Operation  
Mode Switching/Software Control  
Software will execute P1284 negotiation and all operation prior to a data transfer phase under programmed I/O control  
(mode 000 or 001). Hardware provides an automatic control line handshake, moving data between the FIFO and the  
ECP port only in the data transfer phase (modes 011 or 010).  
Setting the mode to 011 or 010 will cause the hardware to initiate data transfer.  
If the port is in mode 000 or 001 it may switch to any other mode. If the port is not in mode 000 or 001 it can only be  
switched into mode 000 or 001. The direction can only be changed in mode 001.  
Once in an extended forward mode the software should wait for the FIFO to be empty before switching back to mode  
000 or 001. In this case all control signals will be deasserted before the mode switch. In an ecp reverse mode the  
software waits for all the data to be read from the FIFO before changing back to mode 000 or 001. Since the automatic  
hardware ecp reverse handshake only cares about the state of the FIFO it may have acquired extra data which will be  
discarded. It may in fact be in the middle of a transfer when the mode is changed back to 000 or 001. In this case the  
port will deassert nAutoFd independent of the state of the transfer. The design shall not cause glitches on the  
handshake signals if the software meets the constraints above.  
ECP Operation  
Prior to ECP operation the Host must negotiate on the parallel port to determine if the peripheral supports the ECP  
protocol. This is a somewhat complex negotiation carried out under program control in mode 000.  
After negotiation, it is necessary to initialize some of the port bits. The following are required:  
-
-
-
-
Set Direction = 0, enabling the drivers.  
Set strobe = 0, causing the nStrobe signal to default to the deasserted state.  
Set autoCAD = 0, causing the nAutoFd signal to default to the deasserted state.  
Set mode = 011 (ECP Mode)  
ECP address/RLE bytes or data bytes may be sent automatically by writing the ecpAFifo or ecpDFifo respectively.  
SMSC DS – LPC47S45x  
Page 89 of 259  
Rev. 07/09/2001  
DATASHEET  
 复制成功!