ADC_filtrer_DMA

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

cross mob
feme_285141
Level 4
Level 4

problem to transfer data from one filter to the USB-UART with DMA
How to read the data with putty ??
you can use the printf () function ???

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are transferring binary data via your USBUART interface which you will not see displayed correctly in PuTTY. You need first to convert the binary 16-bit numbers to ascii characters. This cannot be done using DMA, you will have to read the results number-by-number, convert them using sprintf() and sending the results to USBUART.

   

 

   

Bob

View solution in original post

0 Likes
5 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received
        Please Post your project so we can help you resolve your issue.   
0 Likes
lock attach
Attachments are accessible only for community members.
feme_285141
Level 4
Level 4

HERE THIS DOCUMENT

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are transferring binary data via your USBUART interface which you will not see displayed correctly in PuTTY. You need first to convert the binary 16-bit numbers to ascii characters. This cannot be done using DMA, you will have to read the results number-by-number, convert them using sprintf() and sending the results to USBUART.

   

 

   

Bob

0 Likes
feme_285141
Level 4
Level 4

the problem is making the interruption with DMA to bring the information to USB_UART. Can someone help me with this I would appreciate.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

keep interrupt handlers short! Whenever possible, just set a flag and react on it in the infinite loop in main().

   

Best practice is to use the isr's or component's StartEx() function to connect the handler to the interrupt. Look into the "System Reference Guide" to be found under Creator's help (Search for "Cy_ISR")

   

 

   

Bob

0 Likes