QRSS Rx Network receiver. A receiver to sample a segment of RF spectrum and send this data to a server for further processing and display. NXP mbed Design Challenge entry (Honorable Mention). Published in Circuit Cellar, Feb 2012
Dependencies: NetServices mbed DNSResolver
global.h
00001 /*--------------------------------------------------------------------------- 00002 00003 QRSS Receiver Application 00004 00005 by Clayton ZL3TKA/VK1TKA 00006 clayton@isnotcrazy.com 00007 00008 Header File for global definitions 00009 00010 ---------------------------------------------------------------------------*/ 00011 #ifndef _GLOBAL_H 00012 #define _GLOBAL_H 00013 00014 // Definitions 00015 00016 // Size of data buffers (in samples) 00017 #define BUFFERSYS_SIZE 512 00018 00019 // Number of buffers 00020 #define NUM_OF_BUFFERS 4 00021 00022 // Number of co-efficients in the FIR filter 00023 #define DSP_FIR_COEFFICIENTS 511 00024 00025 // ADC Clock (13.5MHz) 00026 #define ADC_CLOCK 13500000 00027 00028 // Sample Rate (35156 SPS) 00029 #define SAMPLE_RATE (ADC_CLOCK/384) 00030 00031 // Decimation amount - ratio 00032 #define DECIMATION_RATIO 64 00033 00034 // Size of LPF output per Buffer 00035 // (BUFFERSYS_SIZE/DECIMATION_RATIO) 00036 #define LPF_OUTPUTS_SIZE 8 00037 00038 // Decimation Rate (35156/64 = 549 SPS) 00039 #define DECIMATED_RATE (SAMPLE_RATE/DECIMATION_RATIO) 00040 00041 // Scale Factor rate of FIR filter result to output sample 00042 // 32 bit sample * 16 bit coefficient * 511 scaled down to 32 bits 00043 // 32+16+9 bits = 57. Reduce by 25 00044 #define FIR_SHIFT_FACTOR 25 00045 00046 // First LO in the Softrock (10.125MHz) 00047 #define FIRST_LO (ADC_CLOCK*3/4) 00048 00049 // Test NCO freq - approx 15kHz 00050 #define TEST_NCO_FREQ (15600) 00051 00052 // Size of each sample set in bytes - size of TDataSample 00053 #define SAMPLE_SET_SIZE (8) 00054 00055 // QRSS System UDP Port 00056 #define QRSS_UDP_PORT 6595 00057 00058 // comments 00059 00060 // Macros 00061 00062 #endif 00063 00064 //--------------------------------------------------------------------------- 00065 // END 00066 //--------------------------------------------------------------------------- 00067
Generated on Wed Jul 13 2022 23:08:21 by 1.7.2