sdac = sdac + median(sdac); %Center above zero
sdac = sdac / max(sdac); %normalize
sdac = int32(sdac*2000); %integerize
+sdac = sdac + sdac .^ 5;
figure(1)
subplot(211)
plot(20*log10(abs(fft(sdac)/fd)))
grid
title('After bandpass');
-axis([0 (fd/2) -20 80])
+%axis([0 (fd/2) -20 80])
PERIPHLIBURL = http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/
PERIPHLIBZIP = stm32f4_dsp_stdperiph_lib.zip
-PERIPHLIBVER = V1.4.0
+PERIPHLIBVER = V1.5.0
PERIPHLIBNAME = STM32F4xx_DSP_StdPeriph_Lib
-PERIPHLIBDIR = $(PERIPHLIBNAME)_$(PERIPHLIBVER)
+PERIPHLIBDIR = $(PERIPHLIBNAME)
CMSIS = $(PERIPHLIBDIR)/Libraries/CMSIS
STM32F4LIB = $(PERIPHLIBDIR)/Libraries/STM32F4xx_StdPeriph_Driver
STM32F4TEMPLATE = $(PERIPHLIBDIR)/Project/STM32F4xx_StdPeriph_Templates
CFLAGS += -Iinc
FFT_TEST_SRCS = \
-$(DSPLIB)/Examples/arm_fft_bin_example/arm_fft_bin_data.c \
+$(DSPLIB)/Examples/arm_fft_bin_example/ARM/arm_fft_bin_data.c \
fft_test.c \
src/startup_stm32f4xx.s \
stm32f4_machdep.c \
#include "comp.h"
void iir_upconv(float modin[],unsigned short dac_out[]);
+void upconv_48c_80r(COMP comp_8[],float real_80[],int count);
void upconv_8c_80r(COMP comp_8[],float real_80[],int count);
#endif
#include <stm32f4xx_rcc.h>\r
#include "gdb_stdio.h"\r
#include "comp.h"\r
-#include "gmsk_test_dat_m4.h"\r
+//#include "gmsk_test_dat_m4.h"\r
#define SINE_SAMPLES 32\r
\r
\r
}\r
while (1) {\r
cyc+=DUC_N/10;\r
- if(cyc>GMSK_TEST_LEN)\r
- cyc=0;\r
+ //if(cyc>GMSK_TEST_LEN)\r
+ // cyc=0;\r
/*if(cyc%10000==0){\r
printf("8c80r takes %d uSecs\n",tup-tstart);\r
printf("iir upconvert takes %d uSecs\n",tend-tup);\r
}*/\r
tstart = TIM_GetCounter(TIM2);\r
\r
- upconv_8c_80r(&gmsk_test_d[cyc],tx_imm,1);\r
+ //upconv_8c_80r(&gmsk_test_d[cyc],tx_imm,1);\r
\r
tup = TIM_GetCounter(TIM2);\r
\r