Other Parts Discussed in Thread: TEST2, , CC1120
Hi,
I have a problem:
in my application the transmitter send 3 packet when the user push the botton on the remote control. The packets are delayed 60ms , the event 0 is every 50ms (I have try also 2,20,40,80...ms).
GDO2 (with setting 0x24) shows the Event0 but GD0(with setting 0x06) doesn't work. Why?
This is my INITIAL setting
0x06, //IOCFG2 - GDO2 output pin configuration
0xAE, //IOCFG1 - GDO1 output pin configuration
0x06, //IOCFG0 - GDO0 output pin configuration
0x0F, //FIFOTHR - RXFIFO and TXFIFO thresholds.
0xD3, //SYNC1 - SYNC1
0x91, //SYNC0 - SYNC0
0x3D, //PKTLEN - Packet length.
0x04, //PKTCTRL1 - Packet automation control.
0x05, //PKTCTRL0 - Packet automation control.
0x00, //ADDR - Device address.
0x00, //CHANNR - Channel number.
0x06, //FSCTRL1 - Frequency synthesizer control.
0x00, //FSCTRL0 - Frequency synthesizer control.
0x20, //FREQ2 - Frequency control word, high byte.
0x28, //FREQ1 - Frequency control word, middle byte.
0xC5, //FREQ0 - Frequency control word, low byte.
0xCA, //MDMCFG4 - Modem configuration.
0x75, //MDMCFG3 - Modem configuration.
0x03, //MDMCFG2 - Modem configuration.
0x42, //MDMCFG1 - Modem configuration.
0xE5, //MDMCFG0 - Modem configuration.
0x34, //DEVIATN - Modem deviation setting (when FSK modulation is enabled)
0x07, //MCSM2 - Main Radio Control State Machine configuration
0x20, //MCSM1 - Main Radio Control State Machine configuration
0x18, //MCSM0 - Main Radio Control State Machine configuration
0x16, //FOCCFG - Frequency Offset Compensation Configuration.
0x6C, //BSCFG - Bit synchronization Configuration.
0x43, //AGCCTRL2 - AGC control.
0x40, //AGCCTRL1 - AGC control.
0x91, //AGCCTRL0 - AGC control.
0x87, //WOREVT1
0x6B, //WOREVT0
0xF8, //WORCTRL
0x56, //FREND1- Front end RX configuration.
0x10, //FREND0 - Front end RX configuration.
0xE9, //FSCAL3 - Frequency synthesizer calibration.
0x2A, //FSCAL2 - Frequency synthesizer calibration.
0x00, //FSCAL1 - Frequency synthesizer calibration.
0x1F, //FSCAL0 - Frequency synthesizer calibration.
0x41, //RCCTRL1
0x00, //RCCTRL0
0x59, //FSTEST - Frequency synthesizer calibration control
0x7F, //PTEST
0x36, //AGCTEST
0x88, //TEST2 - Various test settings.
0x31, //TEST1 - Various test settings.
0x0B, //TEST0 - Various test settings.
0x00 //PARTNUM;
Before to WOR mode I change this registers in this way:
CC1101_SpiWriteReg(CC1101_MCSM2, 0x30);
CC1101_SpiWriteReg(CC1101_WOREVT1, 0x04); // EVENT0 = 800
CC1101_SpiWriteReg(CC1101_WOREVT0, 0x20);
CC1101_SpiWriteReg(CC1101_WORCTRL, 0x00);
calib1 = CC1101_SpiReadReg(CC1101_RCCTRL1_STATUS);//??ReadReg oStatus
calib0 = CC1101_SpiReadReg(CC1101_RCCTRL0_STATUS);//??ReadReg oStatus
CC1101_SpiWriteReg(CC1101_RCCTRL1, calib1);
CC1101_SpiWriteReg(CC1101_RCCTRL0, calib0);
CC1101_SpiWriteReg(CC1101_IOCFG2, 0x24);
CC1101_SpiWriteReg(CC1101_IOCFG0, 0x06);
CC1101_SpiStrobe(CC1101_SWORRST);
CC1101_SpiStrobe(CC1101_SWOR);
Anyone can help me?
Thanks
Ivo