Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG
Hello,
Is there any example that use DMA mode to acquiring data from ADC?
Thanks!
Crane
Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG
Hello,
Is there any example that use DMA mode to acquiring data from ADC?
Thanks!
Crane
Hi Crane,
We have a demo based on previous sysconfig and SDK version. Please access in below TI Drive link:
tidrive.ext.ti.com/.../81c10876-c5f7-4160-aaae-4d11ed810a08
Password:3bB3R6p|
Thank you for your reply.
This is for I2C. Do you have the example for ADC module?
By the way, this example for I2C is for the case when the I2C frame size is fixed at 16 bytes, right? It means for the I2C communication with varying frame size, it won't work and the logic of handling variable gTxLen needs to be added, right?
Thanks!
Crane
Hi Crane,
Sorry for misunderstanding the request. For ADC example with DMA, I think we have example in our SDK:adc12_max_freq_dma
By the way, this example for I2C is for the case when the I2C frame size is fixed at 16 bytes, right? It means for the I2C communication with varying frame size, it won't work and the logic of handling variable gTxLen needs to be added, right?
Yes, because the DMA size is fixed, so it could only receive fix frame size by default. If you want to receive varying frame size by DMA, I think a timeout mechanism should be implement in this case.
Ok got it. Thanks!
One more question about ADC trigger.
From the example of adc12_triggered_by_timer_event.c, when the repeating mode is disabled, the ADC conversion should be triggered by Timer0 continuously, right? The Timer0 is modified to Periodic Down Counting and I can see the Timer0 interrupt firing continuously, but the ADC conversion is only triggered once. Any idea what might be missed?
Thanks!
Crane