Other Parts Discussed in Thread: TEST2
I have used RFstudio to set the frequency, continuous TX mode and unmodulated function, and write the register information generated by RFstudio into cc1101. Then how to set the main function to let cc1101 send the carrier?
Below is the program I wrote, but it didn't send successfully.
CC1101_Set_Idle_Mode();
for( i = 0; i < 23; i++ )
{
CC1101_Write_Reg( Settings440MHz[i][0], Settings440MHz[i][1] ); //Write configuration parameters
}
CC1101_Set_Address( 0x05, BROAD_0AND255 );
CC1101_Write_Cmd( CC1101_STX );
Where the register information is
static const uint8_t Settings440MHz[23][2]=
{
{CC1101_IOCFG2, 0x0B},
{CC1101_IOCFG0, 0x0C},
{CC1101_FIFOTHR, 0x47},
{CC1101_PKTCTRL0, 0x12},
{CC1101_FSCTRL1, 0x06},
{CC1101_FREQ2, 0x10},
{CC1101_FREQ1, 0xEC},
{CC1101_FREQ0, 0x4E},
{CC1101_MDMCFG4, 0xF5},
{CC1101_MDMCFG3, 0x83},
{CC1101_MDMCFG2, 0x30},
{CC1101_DEVIATN, 0x15},
{CC1101_MCSM0, 0x18},
{CC1101_FOCCFG, 0x16},
{CC1101_WORCTRL, 0xFB},
{CC1101_FREND0, 0x11},
{CC1101_FSCAL3, 0xE9},
{CC1101_FSCAL2, 0x2A},
{CC1101_FSCAL1, 0x00},
{CC1101_FSCAL0, 0x1F},
{CC1101_TEST2, 0x81},
{CC1101_TEST1, 0x35},
{CC1101_TEST0, 0x09},
};