购入信号发生器不久,乘着热头上,多折腾一下。实验内容:
1、用信号发生器产生带直流偏置的正弦波100khz
2、采用stm32f103c8t6最小系统板,用adc最高速率1Msps采集信号。
stm32配置为双adc同步采集(预备为数字电桥,一路电压,一路电流),目前用一路。
adc时钟频率14M,理论采集速度1M,fs=1M,数据长度100,4096=3.3V
第一组:
[996, 1079, 1490, 2141, 2705, 2996, 2943, 2490, 1880, 1329, 987, 1078, 1517, 2147, 2675, 2995, 2924, 2518, 1872, 1308, 1008, 1085, 1513, 2153, 2706, 2996, 2932, 2505, 1868, 1305, 991, 1081, 1524, 2157, 2702, 2994, 2930, 2504, 1869, 1304, 991, 1083, 1529, 2163, 2702, 2994, 2926, 2497, 1878, 1300, 989, 1084, 1536, 2164, 2708, 2997, 2922, 2497, 1852, 1299, 989, 1087, 1537, 2169, 2710, 2994, 2921, 2486, 1849, 1290, 1017, 1090, 1544, 2176, 2715, 2997, 2921, 2487, 1849, 1290, 988, 1089, 1545, 2177, 2714, 3021, 2920, 2483, 1846, 1289, 987, 1092, 1549, 2179, 2717, 2998, 2918, 2482, 1844, 1287]
第二组:
[987, 1087, 1551, 2183, 2720, 2996, 2918, 2469, 1838, 1283, 984, 1094, 1554, 2186, 2721, 2998, 2914, 2474, 1837, 1281, 983, 1094, 1554, 2189, 2724, 2998, 2913, 2470, 1832, 1280, 984, 1100, 1557, 2194, 2725, 3000, 2911, 2468, 1828, 1275, 983, 1098, 1562, 2198, 2729, 3000, 2911, 2470, 1827, 1275, 983, 1099, 1564, 2197, 2729, 2999, 2908, 2463, 1822, 1268, 982, 1104, 1571, 2206, 2734, 2999, 2906, 2456, 1816, 1268, 981, 1103, 1571, 2204, 2734, 2999, 2905, 2455, 1813, 1266, 983, 1098, 1575, 2210, 2737, 3003, 2905, 2455, 1812, 1263, 978, 1106, 1576, 2212, 2738, 3002, 2897, 2449, 1807, 1261]
用matlab画出波形
|