Hi
I am making the assessment test following the application note AN082 which employs CC1110 transceiver with TLV320AIC26 codec with audio sample in 8khz and 12khz,
my goal is to be able to transmit audio quality with 16bit 16khz using the same hardware with 300kbps and modulation GFSK.
I later read the information on AN113 where you use a different codec, and a system of diversity reception.
but I can not properly sncronizzarmi between tx and rx, these are the changes that I made:
// ADC / DAC Sample Rate Options
// #define SR8KHZ
// #define SR12KHZ
#define SR16KHZ
// #define SR24KHZ
// // #define BAUD250GFSK 250 kbps, GFSK modulation
// // #define BAUD300MSK 300 kbps, MSK modulation
// #define BAUD300GFSK stardard 300 kbps, GFSK modulation
// // #define BAUD300_2FSK 300 kbps, 2-FSK modulation
// Number of ADC samples per packet. Each ADC sample is 16 bits (2 bytes).
// #define AF_LEN 54
#define AF_LEN 96
// = 250 kBaud data rate, sample rate = 8 kHz:
// Packet length (bytes) = 2 * 54 + 4 + 4 + 2 + 3 = 121 bytes
// Packet length (microseconds) = 121 * 8000/250 = 3872 usec
// LISTENFORMASTER = 4472 / 29,538 = 151
//
// = 300 kBaud data rate, sample rate = 12 kHz:
// Packet length (bytes) = 2 * 54 + 4 + 4 + 2 + 3 = 121 bytes
// Packet length (microseconds) = 121 * 8000/300 = 3226.7 usec
// LISTENFORMASTER = 3826.7 / 29,538 = 130
// = 300 kBaud data rate, sample rate = 16 kHz:
// Packet length (bytes) = 2 * 96 + 4 + 4 + 2 + 3 = 204 bytes
// Packet length (microseconds) = 205 * 8000/300 = 5466,666 usec
// LISTENFORMASTER = 5466.66 / 29,538 = 185
#define FRAME_TIMEOUT_DEFAULT 161 // 161 (T2CT) Timeout = 161 * 29,538 = 4,756 msec us
// Note That this is 250 microseconds longer than a frame, so T2 Should never reach zero8
8 // #define END_OF_FRAME T2CT count at end of frame (4,519 msec)
#ifdef BAUD300GFSK
#define MASTER_TX_TIMEOUT_WO_CALIB 228, 5 // 228 ,5 Timeout = 226 * 4.923076923 us * 5 = 5612.3 us
#define SLAVE_RX_SYNC_TIMEOUT 245, 3 //
#endif
#ifdef BAUD300GFSK
#define LISTENFORMASTER 185 // Start listening for master 3840 usec before the T2 times out
#define MASTER_RX_TIMEOUT 34 // Abort RX if GDO0 has not dropped in 1000 usec before T2 times out
#endif
//#define LISTEN_FOR_BEACON_TIMEOUT 229, 24 // Timeout = 229 * 4.923076923 us * 24 = 27.057 msec
#define LISTEN_FOR_BEACON_TIMEOUT 229, 24 // Timeout = 229 * 4.923076923 us * 24 = 27.057 msec
who I can be of help for the correct configuration?
Thank you in advance for your support and help
greetings Michael