voidradioConfigure_rx(){PA_TABLE0=0xFE;//1=0xff,-2=0xbf,-6=0x7f,-10=0xcb,-16=0x87,-20=0xc1,-30=0x44/*FREQ2=0x5F;//2480MHzFREQ1=0x62;FREQ0=0x76;*/FREQ2=0x5E;//2460MHzFREQ1=0x9D;FREQ0=0x89;/*FREQ2=0x5D;//2440MHzFREQ1=0xD8;FREQ0=0x9D;FREQ2=0x5D;//2420MHzFREQ1=0x13;FREQ0=0xB1;*/FSCTRL1=0x0A;//Frequencysynthesizercontrol.FSCTRL0=0x00;//Frequencysynthesizercontrol.MDMCFG4=0x2D;//Modemconfiguration.MDMCFG3=0x3B;//Modemconfiguration.MDMCFG2=0x73;//Modemconfiguration.MDMCFG1=0x22;//Modemconfiguration.MDMCFG0=0xF8;//Modemconfiguration.DEVIATN=0x00;//Modemdeviationsetting(whenFSKmodulationisenabled).FREND1=0xB6;//FrontendRXconfiguration.FREND0=0x10;//FrontendRXconfiguration.MCSM0=0x14;//MainRadioControlStateMachineconfiguration.FOCCFG=0x1D;//FrequencyOffsetCompensationConfiguration.BSCFG=0x1C;//BitsynchronizationConfiguration.AGCCTRL2=0xC7;//AGCcontrol.AGCCTRL1=0x00;//AGCcontrol.AGCCTRL0=0xB2;//AGCcontrol.FSCAL3=0xEA;//Frequencysynthesizercalibration.FSCAL2=0x0A;//Frequencysynthesizercalibration.FSCAL0=0x11;//Frequencysynthesizercalibration.TEST2=0x88;//Varioustestsettings.TEST1=0x31;//Varioustestsettings.TEST0=0x0B;//Varioustestsettings.//Co妹妹onradiosettingsforCCxx10,anyfrequencyanddatarateCHANNR=0x00;//Channelnum
2023/3/24 8:11:43
236KB
cc2510
1