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

AN2131QC 参数 Datasheet PDF下载

AN2131QC图片预览
型号: AN2131QC
PDF下载: 下载PDF文件 查看货源
内容描述: 在EZ - USBTM集成电路 [The EZ-USBTM Integrated Circuit]
分类和应用:
文件页数/大小: 334 页 / 1468 K
品牌: CYPRESS [ CYPRESS ]
 浏览型号AN2131QC的Datasheet PDF文件第116页浏览型号AN2131QC的Datasheet PDF文件第117页浏览型号AN2131QC的Datasheet PDF文件第118页浏览型号AN2131QC的Datasheet PDF文件第119页浏览型号AN2131QC的Datasheet PDF文件第121页浏览型号AN2131QC的Datasheet PDF文件第122页浏览型号AN2131QC的Datasheet PDF文件第123页浏览型号AN2131QC的Datasheet PDF文件第124页  
The 8051 code example in Figure 6-13 uses the Autopointer to transfer a block of eight  
data bytes from the endpoint 4 OUT buffer to internal 8051 memory.  
Init: mov  
mov  
dptr,#AUTOPTRH  
a,#HIGH(OUT4BUF) ; High portion of OUT4BUF buffer  
movx  
@dptr,a  
; Load OUTOPTRH  
mov  
mov  
movx  
mov  
mov  
mov  
dptr,#AUTOPTRL  
a,#LOW(OUT4BUF)  
@dptr,a  
dptr,#AUTODATA  
r0,#80H  
; Low portion of OUT4BUF buffer address  
; Load AUTOPTRL  
; point to the ‘fifo’ register  
; store data in upper 128 bytes of 8051 RAM  
; loop counter  
r2,#8  
;
loop: movx  
a,@dptr  
@r0,a  
r0  
; get a ‘fifo’ byte  
; store it  
; bump destination pointer  
; (NOTE: no ‘inc dptr’ required here)  
; do it eight times  
mov  
inc  
djnz  
r2,loop  
Figure 6-13. Use of the Autopointer  
As the comment in the penultimate line indicates, the Autopointer saves an “inc dptr”  
instruction that would be necessary if one of the 8051 data pointers were used to access  
the OUT4BUF RAM data. This improves the transfer time.  
Note  
Fastest bulk transfer speed in and out of EZ-USB bulk buffers is achieved when the  
Autopointer is used in conjunction with the EZ-USB Fast Transfer mode.  
As described in Chapter 8, "EZ-USB Isochronous Transfers," the EZ-USB core provides a  
method for transferring data directly between an internal FIFO and external memory in  
two 8051 cycles (333 ns). The fast transfer mode is active for bulk data when:  
The 8051 sets FBLK=1 in the FASTXFR register, enabling fast bulk transfers,  
The 8051 DPTR points to the AUTODATA register, and  
The 8051 executes a “movx a,@dptr” or a “movx @dptr,a” instruction.  
The 8051 code example in Figure 6-14 shows a transfer loop for moving 64 bytes of exter-  
nal FIFO data into the endpoint 4-IN buffer. The FASTXFR register bits are explained in  
Chapter 8, "EZ-USB Isochronous Transfers."  
EZ-USB TRM v1.9  
Chapter 6. EZ-USB CPU  
Page 6-23  
 复制成功!