阅读:846回复:3
读d12中断寄存器,竟然是3
读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 |
|
沙发#
发布于:2004-07-30 20:00
没有人做d12吗?知道请指教,谢谢
|
|
板凳#
发布于:2004-07-30 20:20
好象是你清中断的位置不对,或串口太慢导致中断重入。
|
|
地板#
发布于:2004-07-30 23:33
我用的是44b0x+d12,出中断处理程序后rI_ISPC = BIT_EINT0,清中断寄存器是通过D12_ReadLastTransactionStatus实现的
[编辑 - 7/30/04 by hi_snake] |
|