Hi,
in my project i have to use the radio on my uC ( CC1110/CC1111). I use the example code from TI for creat my carrier and sending packets. All the Register- Configuration i done with the SmartRF Stuio 7. Now i want to send data and recieve data.
I have to uC, the first one i use it for sending data. And the other one is connected on my PC and SmartRF Studio is openned to see the data comming.
But i have problems withe my code. I can not send data. I'm not sure that my code is correct. The RFD-Register is a 8Bit Register which sent the Data ond bit like Uart. The Uart i programmed well. I can not find my mistake in my code.
Here a short view about my code:
Register configuration from SmartRF:
/* RF settings SoC: CC1110 */ // Packet yollamak icin
PKTCTRL0 = 0x05; // packet automation control
FSCTRL1 = 0x06; // frequency synthesizer control
FREQ2 = 0x10; // frequency control word, high byte
FREQ1 = 0xA7; // frequency control word, middle byte
FREQ0 = 0x62; // frequency control word, low byte
MDMCFG4 = 0xF5; // modem configuration
MDMCFG3 = 0x83; // modem configuration
MDMCFG2 = 0x13; // modem configuration
DEVIATN = 0x15; // modem deviation setting
MCSM0 = 0x18; // main radio control state machine configuration
FOCCFG = 0x17; // frequency offset compensation configuration
FSCAL3 = 0xE9; // frequency synthesizer calibration
FSCAL2 = 0x2A; // frequency synthesizer calibration
FSCAL1 = 0x00; // frequency synthesizer calibration
FSCAL0 = 0x1F; // frequency synthesizer calibration
TEST1 = 0x31; // various test settings
TEST0 = 0x09; // various test settings
PA_TABLE0 = 0x60; // pa power setting 0
IOCFG0 = 0x06; // radio test signal configuration (p1_5)
LQI = 0xC5; // demodulator estimate for link quality
PKTSTATUS = 0x80; // packet status
SYNC1 = 0xAA;
SYNC0 = 0xAA;
RFST = 0x03;
while (1)
{
RFD = RadioTxBuffer[zz];
RFTXRXIE = 1;
EA = 1;
}
#pragma vector = RFTXRX_VECTOR
__interrupt void RFTXRX()
{
RFTXRXIF = 0;
RFTXRXIE = 0;
}