• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » RF & Digital Radio » Digital Radio (GC Products) » Digital Radio (GC Products) Forum » GC5016, power measure problem
Share
Digital Radio (GC Products)
  • Forum
Options
  • Subscribe via RSS

Forums

GC5016, power measure problem

This question is answered
Ondrej Karas13780
Posted by Ondrej Karas13780
on Jul 30 2009 04:47 AM
Prodigy190 points

Hi,

I'am using GC5016 as DDC, a I want measure the power level. All works fine, but the measuring is not running. I readed some tips from datasheet:

Example using a read of the msb to fire one shot:

1. Sync integration counter
2. Wait for ready bit to be 1 (8 clocks or less depending on sync source)
3. Read MSB of power (also fires one shot to clear ready bit) and ignore it.
4. Wait for ready bit to be 1
5. Read power LSB
6. Read power MSB
7. Check to be sure missed bit is not set
8. Go to step 4

but i dont know, what does mean step 1 - sync integration counter. I get always zerros values from power measurement data registers.

 

Thank you.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Ondrej Karas13780
    Posted by Ondrej Karas13780
    on Sep 10 2009 03:18 AM
    Prodigy190 points

    Thank you Joe,

    please could check it my method?

    First, in GC Studio, I generate GC_Pgm.gcprg file (attachement), I use my own utility and generate C source file (attachement).

    Next, in hardware inicialisation by my ATMEGA code I call GC5016_Init() which go through while field and get item zerro as address, item one as data, item two as address, item tree as data etc... It seems, that inicialisation works fine, filtering is ok...

    Next, when user want see value of power, I call ReadPower() function with consequent content:

    // read PowerMeter
    char ReadPower(unsigned int* powerh, unsigned int* powerl, unsigned int* status)
    {
        // if all is ok, return 1
        char reval = 1;

        GC5016_WriteRegister(0x02, 0x13);           
        GC5016_WriteRegister(0x1c, 0x0000);
        GC5016_WriteRegister(0x1d, 0x4000);

        GC5016_WriteRegister(0x02, 0x33);           
        GC5016_WriteRegister(0x1c, 0x0000);
        GC5016_WriteRegister(0x1d, 0x4000);

        GC5016_WriteRegister(0x02, 0x13);           

        *powerl = GC5016_ReadRegister(0x1a);
        *powerh = GC5016_ReadRegister(0x1b);
        *status = GC5016_ReadRegister(0x1c);

        return reval;
    }

    but powerl and powerh is still zerro. GC5016_WriteRegister function works fine, I use this function in GC inicialisation and filtering is OK. GC5016_ReadRegister function works fine too, when I want read some another register, I read previous written value.

    Please could you check my method (progress), that is correct?

    I attached while C library for GC (attachement)

    All atachemet are linked to third-party server.

    Thank you Ondrej

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Radio-Joe
    Posted by Radio-Joe
    on Sep 10 2009 19:08 PM
    Verified Answer
    Verified by Ondrej Karas13780
    Expert7275 points

    Hello,

    The 'sync integration counter' - is to set the pwr_mtr_sync value for this DDC channel to the startup sync source for fir_sync.  These are shown in table

    51 of the GC5016 data sheet.

    The power meter method described in your post, power meter one shot, can't be tested on the TI EVM, as there is no local DSP/uprocessor.

    We suggest that you setup the pwr_mtr_integ count for the number IQ samples*2 -1 tha are desired.  Set the pwr_mtr_sync value, clear the pwr_mtr_status,

    and read the power LSB and MSB registers.  In the split IQ mode, the pwr_mtr_integ count is number IQ samples - 1. 

    I will send a GC5016 SEK example in the next post.

    Regards,

    Radio Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ondrej Karas13780
    Posted by Ondrej Karas13780
    on Sep 11 2009 11:02 AM
    Verified Answer
    Verified by Ondrej Karas13780
    Prodigy190 points

    Hello Joe,

    problem was solved. Power meter worked since first downloading, but signal was very poor... Low 8 bits on output was working, other had no function... I saw block diagram again and solve this proble.

    Thank you for your time...

    Ondrej

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use