WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-Apr-09 15:15:54

rrao
Member
Registered: 2007-Apr-06
Posts: 16

radio controller initialization...

I am using this in the .c file for radio controller initialization. Although the project compiles and I am able to load the bitstream successfully i am unable to see a spectrum on the spec analyzer. Here is what is in the main(). Do I need anything else?

========================

int main (void) {


   print("-- Entering main() --\r\n");

    usleep(0);
    xil_printf("Entering main\r\n");
    //Setup the radio controller & reset radio #2
    WarpRadio_v1_Reset(XPAR_RADIO_CONTROLLER_0_BASEADDR, RADIO1_ADDR);
    //Set Tx baseband gain min
    WarpRadio_v1_BaseBandTxGain(XPAR_RADIO_CONTROLLER_0_BASEADDR, 0x3, RADIO1_ADDR);
   
    //Set Tx gain (6-bit value- 0x00 min, 0x3f max)
    WarpRadio_v1_TxVGAGainControl(XPAR_RADIO_CONTROLLER_0_BASEADDR, 40, RADIO1_ADDR);
    WarpRadio_v1_SetCenterFreq2GHz(XPAR_RADIO_CONTROLLER_0_BASEADDR, 6, RADIO1_ADDR);
    usleep(100);
   
   
   
    WarpRadio_v1_TxEnable(XPAR_RADIO_CONTROLLER_0_BASEADDR, RADIO1_ADDR);
    usleep(10);
   
    //Finally turn on the power amplifier
    WarpRadio_v1_24AmpEnable(XPAR_RADIO_CONTROLLER_0_BASEADDR, RADIO1_ADDR);
    usleep(10);

   print("-- Exiting main() --\r\n");
    xil_printf("Entering main\r\n");
   
   return 0;
}

Offline

 

#2 2007-Apr-09 17:01:52

rrao
Member
Registered: 2007-Apr-06
Posts: 16

Re: radio controller initialization...

Ok. got it. I was using the wrong interface functions. I can see the spectrum now. (Does the v1 in the function names represent version numbers and will it be changing all the time? I hope not.)

int main (void) {


   print("-- Entering main() --\r\n");
   
 
    usleep(0);
    xil_printf("Entering main\r\n");
    //Setup the radio controller & reset radio #1
    WarpRadio_v1_Reset(XPAR_RADIO_CONTROLLER_0_BASEADDR);
    //Set Tx baseband gain min
    WarpRadio_v1_BaseBandTxGain(0x3, RADIO1_ADDR);
   
    //Set Tx gain (6-bit value- 0x00 min, 0x3f max)
    WarpRadio_v1_TxVGAGainControl(40, RADIO1_ADDR);
    WarpRadio_v1_SetCenterFreq2GHz(5, RADIO1_ADDR);
    usleep(100);
   
   
   
    WarpRadio_v1_TxEnable(RADIO1_ADDR);
    usleep(10);
   
    //Finally turn on the power amplifier
    WarpRadio_v1_24AmpEnable(RADIO1_ADDR);
    usleep(10);

   print("-- Exiting main() --\r\n");
    xil_printf("Entering main\r\n");

}

Offline

 

#3 2007-Apr-10 00:15:04

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: radio controller initialization...

The API for the radio controller changed with version 1.08a. This was a long-planned (long-postponed, really) shift to simplify the minimal functions most user applications require. The function prefix 'WarpRadio_v1_' will not change with future revisions to the driver. The '_v1' was added to differentiate this driver from the functions for any future radio board.

Offline

 

#4 2007-Apr-10 09:39:39

rrao
Member
Registered: 2007-Apr-06
Posts: 16

Re: radio controller initialization...

Thanks. I like the new interface, it has fewer, more radio functionality oriented functions. Things like initializing the SPI controller are all hidden now.

Offline

 

Board footer