Sequencing SAR transfer to UART using DMA | Cypress Semiconductor
Sequencing SAR transfer to UART using DMA
I'm trying to transfer data acquired from a sequencing SAR ADC to a UART block using DMA.
I used the code provided by the DMA Wizard.
The trouble is, I always get the data from the first TD and never from the second one.
Normally I used the ADC_SAR_Seq_1_SAR_SAR_WRK0_PTR (assuming I only have 1 instance of the sequencing SAR ADC) address to get the ADC value. But in this case, it only provides one of the channels' value (I have 2 channels, by the way).
I tried messing around and I found out that the sequencing SAR ADC is a sort of macro that includes two DMA transfers. I found out the final structure that houses the values from the 2 channels (in my case, its called ADC_SAR_Seq_1_finalArray.
I tried to transfer the data directly from there to the UART's TX register, but I still get only the first channel's value.
Am I missing something here? Or is there another way to do it?
I'll put the project as an attachment.
I'm pretty new to PSoC Creator so any in-depth comments and (positive) criticism is very welcomed.