This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

predifined cc2530 rf register are differents to datasheet

Hi,
I work on a cc2530 register with keil IDE.
I have import the file cc2510.h but i don't understand why rf registers are different with the datasheet.

Moreover these registers are define in XREG. What is this?

#define ADDR XREG( 0xDF05 ) /* Device address
#define CHANNR XREG( 0xDF06 ) /* Channel number

Why the register 0xDF06 is not define in the datasheet?

Sorry for my bad english...

Antho

  • XREG is just another #define somewhere - it might typecast the integer into a void pointer or similar. Just scan the header files and see what XREG does. Or preprocess the source code and look at the output after preprocessor expansion.

  • the file cc2510.h

    Where did you get this file?

    Have you contacted the author?

    ISTR that ChipCon (now TI) used IAR - so are you trying to use IAR headers with Keil?

    This is an 8051 - so, presumably, XREG is mapped into XDATA ... ?

    Remember that the 8051 requires a lot of proprietary language extensions to work with 'C' ...

  • I work on a cc2530 register with keil IDE.
    I have import the file cc2510.h but i don't understand why rf registers are different with the datasheet.

    I don't know that product line, but could it be that 10 is just not the same as 30?