hi_snake
驱动牛犊
驱动牛犊
  • 注册日期2004-07-14
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:846回复:3

读d12中断寄存器,竟然是3

楼主#
更多 发布于:2004-07-30 13:59
读d12中断寄存器,竟然是3,而且我用bushound看数据,发现、bushound 收到的vid不是71, 04,而我发送的是 0x71, 0x40,
贴一下我的调试信息:
i_st=1
ep_last=21
input:
80 6 0 1 0 0 40 0 type=0, req=6
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 i_st=2
in ep0_txdone, ep_last=0
output:
0 1 i_st=40

i_st=1
ep_last=21
input:
0 5 2 0 0 0 0 0 type=0, req=5
in setaddress:
SetAddressEnable=2
i_st=2
in ep0_txdone, ep_last=92
output:
i_st=2
in ep0_txdone, ep_last=c1
output:


i_st=3----------------竟然是3
ep_last=21
input:
80 6 0 1 0 0 12 0 in ep0_txdone, ep_last=92
in ep0_txdone
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 type=0, req=6
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 i_st=2
in ep0_txdone, ep_last=cc
output:
0 1 i_st=40


i_st=1
ep_last=21
input:
80 6 0 1 0 0 40 0 type=0, req=6
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 i_st=2
in ep0_txdone, ep_last=c1
output:
0 1 i_st=40


i_st=1
ep_last=21
input:
0 5 2 0 0 0 0 0 type=0, req=5
in setaddress:
SetAddressEnable=2
i_st=2
in ep0_txdone, ep_last=92
output:
i_st=2
in ep0_txdone, ep_last=c1
output:


i_st=3
ep_last=21
input:
80 6 0 1 0 0 12 0 in ep0_txdone, ep_last=92
in ep0_txdone
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 type=0, req=6
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 i_st=2
in ep0_txdone, ep_last=cc
output:
0 1 i_st=40
i_st=1
ep_last=21
input:
80 6 0 1 0 0 40 0 type=0, req=6
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 i_st=2
in ep0_txdone, ep_last=c1
output:
0 1 i_st=40
i_st=1
ep_last=21
input:
0 5 2 0 0 0 0 0 type=0, req=5
in setaddress:
SetAddressEnable=2
i_st=2
in ep0_txdone, ep_last=92
output:
i_st=2
in ep0_txdone, ep_last=c1
output:
i_st=3
ep_last=21
input:
80 6 0 1 0 0 12 0 in ep0_txdone, ep_last=92
in ep0_txdone
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 type=0, req=6
output:
12 1 10 1 0 0 0 10 71 4 66 6 0 1 0 0 i_st=2
in ep0_txdone, ep_last=cc
hi_snake
驱动牛犊
驱动牛犊
  • 注册日期2004-07-14
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-07-30 20:00
没有人做d12吗?知道请指教,谢谢
c5499
驱动牛犊
驱动牛犊
  • 注册日期2004-07-18
  • 最后登录2009-06-05
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-07-30 20:20
好象是你清中断的位置不对,或串口太慢导致中断重入。
hi_snake
驱动牛犊
驱动牛犊
  • 注册日期2004-07-14
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-07-30 23:33
我用的是44b0x+d12,出中断处理程序后rI_ISPC = BIT_EINT0,清中断寄存器是通过D12_ReadLastTransactionStatus实现的


[编辑 -  7/30/04 by  hi_snake]
游客

返回顶部