discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] FX2 AUTO-OUT mode


From: David Carr
Subject: [Discuss-gnuradio] FX2 AUTO-OUT mode
Date: Mon, 27 Jun 2005 14:25:40 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 MultiZilla/1.6.4.0b

Whats the trick to get the FX2 to work in auto-out mode?  I've tried
with fx2_programmer's bulk_write command and with a modified version of
the test_usrp_standard_tx code.  With fx2_programmer I get "connection
to endpoint 2 timed out" and test_*_standard_tx sends 8MB before
blocking indefinately.  Basically I think the FX2 just isn't taking any
data in.  It seems that even if I don't have auto-out setup correctly, I
should be able to at least write a few bytes to the endpoint...

Does anyone have anything that works that I can see?  Unfortunately the
USRP firmware uses the GPIF mode instead of FIFO mode so I'm not sure
how applicable the code is...

Thanks,
David Carr

Here's what I have (with a few questions):

  CPUCS = bmCLKSPD1; // CPU runs @ 48 MHz
    
  IFCONFIG=0xC3; //Internal IFCLK at 48MHz, clock out disabled
  SYNCDELAY;//Normal polarity, Sync, Slave FIFO mode

  SYNCDELAY;
  REVCTL = 0x03; //The TRM says to set this or ELSE

  SYNCDELAY;
  EP2CFG = 0xA2; //EP2 enabled, direction: OUT, type: BULK, Buffer size:
512, 2x Buffered

  FIFORESET = 0x80; // Reset the FIFO
  SYNCDELAY;
  FIFORESET = 0x02;
  SYNCDELAY;
  FIFORESET = 0x00;
  SYNCDELAY;

  EP2FIFOCFG = 0x00; //AUTO-OUT disabled, wordwide=0 (8 bit bus with)
  SYNCDELAY;
  EP2FIFOCFG = 0x10; //AUTO-OUT enabled, wordwide=0 (8 bit bus with)
  SYNCDELAY;
 
  EP2BCL = 0x00;  //is this needed to arm the endpoint?
  SYNCDELAY;
  EP2BCL = 0x00;
  SYNCDELAY;

  OUTPKTEND = 0x8F;  //the example says x82 --- why do I want the SKIP
bit set?  Also x82 sets the bit for EP1 I think -- NOT EP2
  SYNCDELAY;
  OUTPKTEND = 0x8F;
  SYNCDELAY;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]