Hello i am tryin to send a AC voltage of about .2 volts from the ADC on my MCP3903 board with dspic33f microchip. I am able to communicate with labview through UART but not able to get the sine wave i am hoping for. Im not sure how the data is being plotting like if just garabage or what. I have attached my code and image of the what being plotted on the graph. IF somone can help me that would be great.
已解决! 转到解答。
what do mean like concatentate to single string, and what do you need to know about the code as far of how the data is sent
Okay here is what the string is ouputing ASCII values and then does the unsigned int conversion. The data on the graph though is just random plots. I want to know how to get the appropraited sine wave function for my AC signal.also it a 24 bit number coming out of my ADC and uart can only send 8 bit. I also attached a picture of the data in a virtual terminal.
it not random cause when i send it to a dataviewer program that designed to view the ADC it actually produces my AC signal. and forms a sine wave.
Hi muscle05,
I think a step in the right direction to handle that error I see in your screenshot is to take a look at Producer/Consumer architecture:
Regards,
G-IV