Other Parts Discussed in Thread: CC1101
Dear TI E2E Team,
I am not getting proper data by transmitter.
I followed these steps.
1. CS=LOW, Initialize the register in brust mode, Not used register written = 0x00,
reserved and register value taken from rf studio. CS=HIGH
.
//RADIO_WRITE_ACCESS|RADIO_BURST_ACCESS|CC115L_IOCFG2 = 0x40
uint8_t Init_RF_N_Reg[49]= {0x40,0x2E,0x2E,0x06,0x47,0xD3,
0x91,0x1E,0x00,0x04,0x00,
0x01,0x00,0x00,0x10,0x09,
0x7A,0xC8,0x84,0x11,0x22,
0xE5,0x33,0x00,0x30,0x18,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xFB,0x00,0x10,
0xE9,0x2A,0x00,0x1F,0x00,
0x00,0x59,0x7F,0x3F,0x81,
0x35,0x09,0x00};
Highlighted byte is header byte.
2. Command strobe STX
CS_LO;
//delay_1ms(1);
while(SPI_MISO); /* Pull CS_N low and wait for MISO to go low before communication starts */
Com_busy_flag = 0U;
CMD_Strobe(CC115L_STX);
while(!Com_busy_flag);
CS_HI;
3. Send Data
Payload_buff[0]=CC11xL_FIFO|RADIO_BURST_ACCESS|RADIO_WRITE_ACCESS;
for(i=1;i<31;i++) Payload_buff[i]=SPEED_0[i];
CS_LO;
delay_1ms(1);
while(SPI_MISO); /* Pull CS_N low and wait for MISO to go low before communication starts */
Com_busy_flag = 0U;
TxRx_Status = R_CSI00_Send_Receive(Payload_buff,31,0U);
while(!Com_busy_flag);
CS_HI;
4. CS_LO;
delay_1ms(1);
while(SPI_MISO); /* Pull CS_N low and wait for MISO to go low before communication starts */
Com_busy_flag = 0U;
CMD_Strobe(CC115L_SIDLE);
while(!Com_busy_flag);
delay_1ms(1);
CS_HI;
I am getting corrupted data. only 2 or 3 times get actual data. I am using poll mode(i.e. only SPI Connection).