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

cross mob
Anonymous
Not applicable

How can i use Del_sigma ADC (differential mode)to sample and convert sine wave signal of 1Khz ? And then i have to send the conversion result through UART to PC.  I tried doing so but i get some random symbols. How to overcome this? Resolotion of ADC is  8 bit and conversion rate is 8000sps. UART at 115200bps.

   

Thank you

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

The asterisk in "%d*" format requires an additional parameter, I would suggest to delete the "*".

   

Increase the heap size to 0x200 (in .cydwr view -> System -> Heap size

   

Your temp-variable is quite too short and sprinf() will overwrite some sram. I suggest to increase it generously to temp[20].

   

 

   

Happy coding

   

 

   

Bob

View solution in original post

0 Likes
12 Replies