This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SMARTRF Tx modulated zero one zero one

Other Parts Discussed in Thread: CC1120, TEST2

Hello,

For our testing tools a TX of zero-one zero-one repeated forever (one time modulated and one time not modulated).
I was hoping that could be done via the smartrf tool.
Is there a way to configure the smartrf tool to produce a Tx modulated (and not modulated) signal of zero-one, zero-one repeated for ever?

I need to produce it using CC1120 or CC430 (don't care which).

If that is possible via code one please provide direction.. 

Regards.

  • For both chips strobing STX without anything in the TX FIFO will send a infinite stream of 010101.

  • Thank you for the fast response.

    I have seen this example.

    Are you referring for configuration of TX like in the example or are you referring to modification like:

    no configurations at all and (please advice about minimum configurations, should I export from smarrf?):

    while(1)

    {

     mrfiSpiCmdStrobe(STX) ;

    __delay_cycles(1000);

    mrfiSpiCmdStrobe(SNOP);

    }

     

  • You need a configuration. Sending a 0101 sequence needs some information about the modulation. FSK sends a '0' as -dev and a '1' as +deviation, OOK sends a '1' as high output power, '0' as low output power etc. You also need to set the datarate you want to send the sequence with. Export from SmartRF Studio to set the registers and keep the while statement.

  • Thank you for your replay.

    Are those the necessary settings? (if not please advice with correct settings for ASK/OOK at 902MHZ or 868MHZ)

    #define SMARTRF_RADIO_CC430

    #define SMARTRF_SETTING_IOCFG2 0x0B
    #define SMARTRF_SETTING_IOCFG0 0x2D
    #define SMARTRF_SETTING_FIFOTHR 0x47
    #define SMARTRF_SETTING_PKTCTRL0 0x12
    #define SMARTRF_SETTING_FSCTRL1 0x06
    #define SMARTRF_SETTING_FREQ2 0x21
    #define SMARTRF_SETTING_FREQ1 0x62
    #define SMARTRF_SETTING_FREQ0 0x76
    #define SMARTRF_SETTING_MDMCFG4 0xF5
    #define SMARTRF_SETTING_MDMCFG3 0x83
    #define SMARTRF_SETTING_MDMCFG2 0x30
    #define SMARTRF_SETTING_DEVIATN 0x15
    #define SMARTRF_SETTING_MCSM0 0x10
    #define SMARTRF_SETTING_FOCCFG 0x16
    #define SMARTRF_SETTING_WORCTRL 0xFB
    #define SMARTRF_SETTING_FREND0 0x11
    #define SMARTRF_SETTING_FSCAL3 0xE9
    #define SMARTRF_SETTING_FSCAL2 0x2A
    #define SMARTRF_SETTING_FSCAL1 0x00
    #define SMARTRF_SETTING_FSCAL0 0x1F
    #define SMARTRF_SETTING_TEST2 0x81
    #define SMARTRF_SETTING_TEST1 0x35
    #define SMARTRF_SETTING_TEST0 0x09

     + how can I change it from no modulation to modulated.