小弟目前遇到一個難題想向各位前輩們請教,,由於在RF領域尚處於摸索新人階段,因此有問題時就比較無頭緒該如何解決!!
小弟有一發射的遙控器及一接收的遙控器,調製方式為MSK(0x73, // MDMCFG2),目前將由原先MSK方式變更為ASK後,原可一發送一接收,變更為ASK後接收部分就不行了!
搜尋相關CC2500的範例程式大都是MSK,不知有沒有前輩們有沒有ASK的範例程式可提供小弟參考!
以下是用SmartRF Studio 7 的數值,煩請有經驗的前輩們指導小弟哪部分要修改或該重哪部份著手?
謝謝!!
ASK RF_SETTINGS rfSettings
0x29, // IOCFG2 GDO2Output Pin Configuration
0x2E, // IOCFG1 GDO1Output Pin Configuration
0x06, // IOCFG0 GDO0Output Pin Configuration
0x07, // FIFOTHR RX FIFO and TX FIFO Thresholds
0xD3, // SYNC1 Sync Word, High Byte
0x91, // SYNC0 Sync Word, Low Byte
0xFF, // PKTLEN Packet Length
0x04, // PKTCTRL1 Packet Automation Control
0x05, // PKTCTRL0 Packet Automation Control
0x00, // ADDR Device Address
0x00, // CHANNR Channel Number
0x08, // FSCTRL1 Frequency Synthesizer Control
0x00, // FSCTRL0 Frequency Synthesizer Control
0x5D, // FREQ2 Frequency Control Word, High Byte
0x93, // FREQ1 Frequency Control Word, Middle Byte
0xB1, // FREQ0 Frequency Control Word, Low Byte
0x2C, // MDMCFG4 Modem Configuration
0x22, // MDMCFG3 Modem Configuration
0x33, // MDMCFG2 Modem Configuration
0x22, // MDMCFG1 Modem Configuration
0xF8, // MDMCFG0 Modem Configuration
0x44, // DEVIATN Modem Deviation Setting
0x07, // MCSM2 Main Radio Control State Machine Configuration
0x30, // 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
0x03, // AGCCTRL2 AGC Control
0x40, // AGCCTRL1 AGC Control
0x91, // AGCCTRL0 AGC Control
0x87, // WOREVT1 High Byte Event0 Timeout
0x6B, // WOREVT0 Low Byte Event0 Timeout
0xF8, // WORCTRL Wake On Radio Control
0x56, // FREND1 Front End RX Configuration
0x10, // FREND0 Front End TX configuration
0xEA, // FSCAL3 Frequency Synthesizer Calibration
0x0A, // FSCAL2 Frequency Synthesizer Calibration
0x00, // FSCAL1 Frequency Synthesizer Calibration
0x11, // FSCAL0 Frequency Synthesizer Calibration
0x41, // RCCTRL1 RC Oscillator Configuration
0x00, // RCCTRL0 RC Oscillator Configuration
0x59, // FSTEST Frequency Synthesizer Calibration Control
0x7F, // PTEST Production Test
0x3F, // AGCTEST AGC Test
0x88, // TEST2 Various Test Settings
0x31, // TEST1 Various Test Settings
0x0B, // TEST0 Various Test Settings |