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

d12枚举

楼主#
更多 发布于:2003-07-19 09:22
HELELO EVERYONE,I AM DEVELOPING A PROJECT,USING PARALLEL PORT TO CONTROL D12,FIRMWARE IS DEVELOPING BY VISUAL C++ ,
IN EMUME,GET DEVICE DESCRIPTOR,SET ADDRESS,GET CONFIGURATION  DESCRIPTOR IS OK,BUT WHEN GET CONFIGURATION,GET INTERFACE ,GET ENDPOINT DESCRIPTOR,  THE ENDPOINT1 (TRANSMIT INTERRUPT )DO NOT GENERATE A INTERRUPT TO TRANSMIT THE ALL DESCRIPTOR 。

I DO NOT KNOW WHY?BECAUSE IN GET DEVICE DESCRIPTOR,I DEBUG THE CODE AND FOUND THE ENDPOINT1 CAN GENERATE A INTERRUPT。

I HAVE A QUESTION:
       IS IT TIME UP WHEN ENMUING IN VISUALL C++?
    



THE DEBUG INFORMATION IS SHOWN BELOW:

Interrupt is 80       //suspend.

Interrupt is c0       //suspend & reset.

Interrupt is 1        //Endpoint0 interrupt,setup packet.

Last TransactionStatus:21

   DeviceRequest.bmRequestType:128      DeviceRequest.bRequest:6
   DeviceRequest.wValue:256      DeviceRequest.wIndex:0
   DeviceRequest.wLength:64

Enter into get description

   Enter into Get Device Description

   Interrupt is 2
   Enter into EndPoint0 Tx Routine        //Endpoint1 transmit device descriptor.

Interrupt is 40                           //why reset again? when power on already reset.

Interrupt is 1

Last TransactionStatus:21

   DeviceRequest.bmRequestType:0      DeviceRequest.bRequest:5
   DeviceRequest.wValue:2      DeviceRequest.wIndex:0
   DeviceRequest.wLength:0

2   Enter into Set Address

Interrupt is 2
    Enter into EndPoint0 Tx Routine


Interrupt is 1                        //Get device descriptor again after set address.

Last TransactionStatus:21

   DeviceRequest.bmRequestType:128      DeviceRequest.bRequest:6
   DeviceRequest.wValue:256      DeviceRequest.wIndex:0
   DeviceRequest.wLength:18

3   Enter into get description                   //send device descriptor 18 bytes.
    Enter into Get Device Description

Interrupt is 2
    Enter into EndPoint0 Tx Routine
EndPoint1 status is: 8
EndPoint1 Status: 0

Interrupt is 2
    Enter into EndPoint0 Tx Routine
EndPoint1 status is: 18


Interrupt is 1

Last TransactionStatus:41
Enter into Ack Stage!


                                  
Interrupt is 1                                  
Last TransactionStatus:21

   DeviceRequest.bmRequestType:128      DeviceRequest.bRequest:6    
   DeviceRequest.wValue:512      DeviceRequest.wIndex:0
   DeviceRequest.wLength:9

4   Enter into get description
    Data Length: 9
EndPoint1 Status: 0
    Enter into Get Configuration Description: 1                    //get configuration.

Interrupt is 2                                                    //send configuration 9 bytes.
    Enter into EndPoint0 Tx Routine

Interrupt is 1

Last TransactionStatus:41
Enter into Ack Stage!

Interrupt is 1
Last TransactionStatus:21

   DeviceRequest.bmRequestType:128      DeviceRequest.bRequest:6
   DeviceRequest.wValue:768      DeviceRequest.wIndex:0
   DeviceRequest.wLength:54527
5   Enter into get description                                   //get string descriptor.
    Enter into Get String Description


Interrupt is 2                                                  //send string descriptor.  
    Enter into EndPoint0 Tx Routine
EndPoint1 status is: 8

Interrupt is 1                                                

Last TransactionStatus:41
Enter into Ack Stage!


//===================================================================================
//Why do not d12 generate interrupt 2(Endpoint1) to send configuration & interface &endpoint descriptor?   ***********    
//if time up? i use  parallel port d12 in windows2000/win98.
//===================================================================================
 
Interrupt is 1
Last TransactionStatus:21

   DeviceRequest.bmRequestType:128      DeviceRequest.bRequest:6
   DeviceRequest.wValue:512      DeviceRequest.wIndex:0
   DeviceRequest.wLength:59903
6   Enter into get description
    Data Length: 59903
EndPoint1 Status: 0
    Enter into Get Configuration Description: 2




Interrupt is c1                             //why do d12 generate interrupt 1 & interrupt reset & interrupt suspend.

Last TransactionStatus:21

   DeviceRequest.bmRequestType:128      DeviceRequest.bRequest:6
   DeviceRequest.wValue:256      DeviceRequest.wIndex:0
   DeviceRequest.wLength:64
7   Enter into get description
    Enter into Get Device Description




  
 
      

游客

返回顶部