我想用FPGA控制射频天线的信号通过FX2芯片传输给电脑,FX2的驱动、固件能识别, 
用EP2OUT写入数据,存给EP6IN,能在计算机上用Cyconsole读出数据。但是用FPGA给FX2写数据的时候读不出数据。总是失败! 
Dscr.a51里面照cypress给的开发包更改的内容是: 
 
;; Interface Descriptor 
      db   DSCR_INTRFC_LEN      ;; Descriptor length 
      db   DSCR_INTRFC         ;; Descriptor type 
      db   0               ;; Zero-based index of this interface 
      db   0               ;; Alternate setting 
      db   4               ;; Number of end points  
      db   0ffH            ;; Interface class 
      db   00H               ;; Interface sub class 
      db   00H               ;; Interface sub sub class 
      db   0               ;; Interface descriptor string index 
       
;; Endpoint Descriptor 
      db   DSCR_ENDPNT_LEN      ;; Descriptor length 
      db   DSCR_ENDPNT         ;; Descriptor type 
      db   02H               ;; Endpoint number, and direction 
      db   ET_BULK            ;; Endpoint type 
      db   00H               ;; Maximun packet size (LSB) 
      db   02H               ;; Max packect size (MSB) 
      db   00H               ;; Polling interval 
 
;; Endpoint Descriptor 
      db   DSCR_ENDPNT_LEN      ;; Descriptor length 
      db   DSCR_ENDPNT         ;; Descriptor type 
      db   86H               ;; Endpoint number, and direction 
      db   ET_BULK            ;; Endpoint type 
      db   00H               ;; Maximun packet size (LSB) 
      db   02H               ;; Max packect size (MSB) 
      db   00H               ;; Polling interval 
 
;; Endpoint Descriptor 
      db   DSCR_ENDPNT_LEN      ;; Descriptor length 
      db   DSCR_ENDPNT         ;; Descriptor type 
      db   01H               ;; Endpoint number, and direction 
      db   ET_BULK            ;; Endpoint type 
      db   40H               ;; Maximun packet size (LSB) 
      db   00H               ;; Max packect size (MSB) 
      db   00H               ;; Polling interval 
;; Endpoint Descriptor 
      db   DSCR_ENDPNT_LEN      ;; Descriptor length 
      db   DSCR_ENDPNT         ;; Descriptor type 
      db   81H               ;; Endpoint number, and direction 
      db   ET_BULK            ;; Endpoint type 
      db   40H               ;; Maximun packet size (LSB) 
      db   00H               ;; Max packect size (MSB) 
      db   00H               ;; Polling interval 
HighSpeedConfigDscrEnd:    
 
 
另外TD_Init()里面改的内容是: 
void TD_Init(void)             // Called once at startup 
{ 
   BREAKPT &= ~bmBPEN;      // to see BKPT LED go out TGE 
   Rwuen = TRUE;            // Enable remote-wakeup 
 
   CPUCS = ((CPUCS & ~bmCLKSPD) | bmCLKSPD1) ; 
   // set the slave FIFO interface to 48MHz 
 
 SYNCDELAY;  
    PORTACFG=0x40;                 // 设置PA.7 为 slcs;      
    SYNCDELAY;   
 FIFORESET = 0x80; 
    SYNCDELAY; 
    FIFORESET = 0x02; 
    SYNCDELAY; 
 FIFORESET = 0x04; 
 SYNCDELAY; 
 FIFORESET = 0x06; 
 SYNCDELAY; 
    FIFORESET = 0x08; 
    SYNCDELAY; 
    FIFORESET = 0x00; 
 SYNCDELAY;  
     
    IFCONFIG |= 0xCB; 
    SYNCDELAY; 
 EP1OUTCFG = 0xA0; 
 EP1INCFG = 0xA0; 
    SYNCDELAY; 
 EP2CFG = 0xA2; 
    SYNCDELAY; 
  
  
    EP6FIFOCFG =0x08; 
   SYNCDELAY; 
    EP6CFG = 0xe8;  
   SYNCDELAY;    
    PINFLAGSCD = 0x0e; 
   SYNCDELAY; 
   FIFOPINPOLAR = 0x00; 
   SYNCDELAY; 
    EP6AUTOINLENH = 0x02;              
    SYNCDELAY;  
   EP6AUTOINLENH = 0x02;              
    SYNCDELAY;  
    EP6AUTOINLENL = 0x00;    
    SYNCDELAY;   
   EP6AUTOINLENL = 0x00;    
    SYNCDELAY;                        
                                   
   EP2BCL = 0x80;                 
   SYNCDELAY;                     
   EP2BCL = 0x80; 
   SYNCDELAY;    
  // enable dual autopointer feature 
  AUTOPTRSETUP |= 0x01; 
}请问这是什么原因呢??是固件的问题还是FPGA根本就没把数据写入呢?? |   
     
  
 |