Other Parts Discussed in Thread: , MSPM0G3107
Tool/software:
Hello Technical Support,
I am working on an application with the MSPM0G3507 microcontroller, where an analog signal needs to be sampled very quickly (in the microsecond range) and reconstructed as accurately as possible. While I am currently using the LP-MSPM0G3507 for this purpose, it will be replaced by the MSPM0G3107 in the final project. However, I have encountered a few obstacles and hope to receive some assistance here.
Depending on the selected DMA sample count (referred to as SAMPCNT in the manual), the output image varies significantly. For visualization, I have applied a 50 Hz sine wave signal with an amplitude of 1 V and an offset of 1.65 V to an ADC. The sampling time used is 20 µs. After the measurement, I reconstruct the signal by multiplying each index by the sampling time. To obtain all these results, I used the example project adc12_max_freq_dma and only changed the input channel, the sampling time, and the DMA samples count.
I have also observed changes in the runtimes for the measured values.
The value 6 appears to be the best for this sampling time. However, when I use 2 µs instead of 20 µs, the value 7 seems to be the best choice, although there is still a small deviation.
I also tested 11 µs, but none of the values seem to fit well.
Another anomaly I noticed is that 12 measured values are already transferred from SAMPCNT 6 onwards. This is apparent from the '0', which is due to the default use of DL_ADC12_DMA_MEM10_RESULT_LOADED in the project, instead of DL_ADC12_DMA_MEM11_RESULT_LOADED as in other projects. Repetitions can be detected starting from SAMPCNT 8. I would understand this from SAMPCNT 13 onwards, given that the microcontroller only has 12 conversion-result storage registers. For reference, you can see the first measured values received from the test with a 20 µs sampling time.
I would appreciate any guidance or suggestions you can provide to help resolve these issues.
Important informations:
Code Composer Studio Version:
12.7.0.00007
MSPM0 SDK Version:
2.01.00.03
MSPM0G3507 Version:
2h
MSPM0G3507 Partnum:
BB88h
Kind Regards