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

AN2131QC 参数 Datasheet PDF下载

AN2131QC图片预览
型号: AN2131QC
PDF下载: 下载PDF文件 查看货源
内容描述: 在EZ - USBTM集成电路 [The EZ-USBTM Integrated Circuit]
分类和应用:
文件页数/大小: 334 页 / 1468 K
品牌: CYPRESS [ CYPRESS ]
 浏览型号AN2131QC的Datasheet PDF文件第155页浏览型号AN2131QC的Datasheet PDF文件第156页浏览型号AN2131QC的Datasheet PDF文件第157页浏览型号AN2131QC的Datasheet PDF文件第158页浏览型号AN2131QC的Datasheet PDF文件第160页浏览型号AN2131QC的Datasheet PDF文件第161页浏览型号AN2131QC的Datasheet PDF文件第162页浏览型号AN2131QC的Datasheet PDF文件第163页  
FRD# strobes[00] and [01], along with the OSC24 clock signal are typically used to con-  
nect to an external synchronous FIFO. The on-clock-wide read strobe ensures that the  
FIFO address advances only once per clock. The second strobe [01] is for FIFOs that put  
data on the bus one clock after the read strobe. Stretch values above 000 serve only to  
extend the 8051 cycle times, without affecting the width of the FRD# strobe.  
FRD# strobes [10] and [11] are typically connected to an external asynchronous FIFO,  
where no clock is required. Strobe [10] samples the data at the same time as strobe [11],  
but provides a wider pulse width (for stretch=000), which is required by some audio  
CODECS. Timing values for these strobe signals are given in Chapter 13, “EZ-USB AC/  
DC Parameters.”  
8.8  
Fast Transfer Speed  
The 8051 code example in Figure 8-13 shows a transfer loop for moving external FIFO  
data into the endpoint 8-IN FIFO. This code moves data from an external FIFO attached  
to the EZ-USB data bus and strobed by the FRD# signal, into the FIFO register IN8DATA  
(init)  
mov  
mov  
movx  
mov  
mov  
dptr,#FASTXFR  
a,#10000000b  
@dptr,a  
dptr,#IN8DATA  
r7,#80  
; set up the fast ISO transfer mode  
; FISO=1, RPOL=0, RM1-0 = 00  
; load the FASTXFR register  
; pointer to IN endpoint FIFO  
; r7 is loop counter, 8 bytes per loop  
;
loop:  
movx  
movx  
movx  
movx  
movx  
movx  
movx  
movx  
djnz  
@dptr,a  
@dptr,a  
@dptr,a  
@dptr,a  
@dptr,a  
@dptr,a  
@dptr,a  
@dptr,a  
r7,loop  
; (2) write IN FIFO using byte from external bus  
; (2) again  
; (2) again  
; (2) again  
; (2) again  
; (2) again  
; (2) again  
; (2) again  
; (3) do eight more, ‘r7’ times  
Figure 8-13. 8051 Code to Transfer 640 Bytes of External Data to an Isochronous IN FIFO  
This routine uses a combination of in-line and looped code to transfer 640 bytes into the  
EP8IN FIFO from an external FIFO. The loop transfers eight bytes in 19 cycles, and it  
takes 80 times through the loop to transfer 640 bytes. Therefore, the total transfer time is  
80 times 19 cycles, or 1,520 cycles. The 640 byte transfer thus takes 1,520*166 ns or 252  
µs, or approximately one-fourth of the 1-ms USB frame time.  
Using this routine, the time to completely fill one isochronous FIFO with 1,024 bytes  
(assuming all 1,024 isochronous FIFO bytes are assigned to one endpoint) would be 128  
Page 8-14  
Chapter 8. EZ-USB CPU  
EZ-USB TRM v1.9  
 
 复制成功!