alting
驱动牛犊
驱动牛犊
  • 注册日期2004-04-03
  • 最后登录2005-03-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1177回复:1

EZ-USB ISO transfer

楼主#
更多 发布于:2004-04-08 16:27
Hi

I have another problem about the EZ-USB AN2131 ISO transfer

I set the EP8 is an out endpoint and the size is 16 bytes. I use following code to receive the data from host.

byteCount = (OUT8BCH << 8) + OUT8BCL;
while (byteCount--){
value = OUT8DATA;
}

the problem is: does the OUT8DATA can increase the address automatically? If not, then I just read the same byte always.
Because I look at the assembly code, it likes this:

MOV DPTR,#OUT8DATA
MOVX A,@DPTR
MOV R7,A

OUT8DATA is never increased.

How to increase the OUT8DATA so that I can read the next byte?
xinli->新利
驱动中牛
驱动中牛
  • 注册日期2004-03-28
  • 最后登录2007-08-24
  • 粉丝0
  • 关注0
  • 积分483分
  • 威望56点
  • 贡献值0点
  • 好评度24点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-04-08 19:16
INC DPTR

HEHE... :D
xueli19810917@163.com www.GGJJDDMM.com
游客

返回顶部