How do you use DMA to transmit a continuous piece of ADC data

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User_007
Level 1
Level 1
First solution authored First reply posted First like given

Hi all,

My English is a little poor. I'm sorry if there is a spelling mistake. Please forgive me.

I have a question:

I am using CY8CK-062S4 from PSoC™ 62 MCU. I tried using DMA to transfer two simultaneous ADCs for a total of 512 pieces of data. Normally, these 512 pieces of data should be one continuous signal, but I actually found that it was two signals. The first 256 pieces of data represent one segment of the signal, and the last 256 pieces of data represent another segment of the signal. It looks like this picture.

_1-1669950576070.png

_2-1669951873605.png

 

The manual indicates that 1D transmits a maximum of 256 data. Whether there is a delay at the 256th data position?

_0-1669949939141.png

This is part of the code,

_3-1669952072237.png_4-1669952148380.png

 

I felt very confused and desperately wanted someone to help me.

0 Likes
1 Solution
User_007
Level 1
Level 1
First solution authored First reply posted First like given

I don't know if I can describe it clearly, but the correct waveform should be continuous like this.

User_007_1-1669958254508.png

 

User_007_0-1669958117191.png

 

View solution in original post

0 Likes
1 Reply
User_007
Level 1
Level 1
First solution authored First reply posted First like given

I don't know if I can describe it clearly, but the correct waveform should be continuous like this.

User_007_1-1669958254508.png

 

User_007_0-1669958117191.png

 

0 Likes