I use the serial port at c# to read from micro controller.
the micro has analog to digital program .
i micro has two input pins to receive analog signal from function generator and has outpot serial to my pc .
my programe able to drow serial port signal correctely only for 30seconed and then it do not work correctely.
i aske tou to help me to built srial port class to solve thise problem
serial port problem
Page 1 of 13 Replies - 2187 Views - Last Post: 03 July 2010 - 10:17 AM
Replies To: serial port problem
#2
Re: serial port problem
Posted 03 July 2010 - 07:56 AM
We have a tutorial on Serial Port Communication in C#, written by the brilliant PsychoCoder. I'd suggest you check it out.
#3
Re: serial port problem
Posted 03 July 2010 - 07:59 AM
Well you're going to have to show us the code you've written so we can help you debug it and find a solution
#4
Re: serial port problem
Posted 03 July 2010 - 10:17 AM
Quote
micro has two input pins to receive analog signal
When you say "an analog signal" are you saying "a voltage level" ?
You are directly reading the voltage level on a pin?
The C# SerialPort pinchanged event is of course dependent on your PC's serial port. Most are 0-3 volts is negative, 5-24 is positive, 3-5 is undetermined.
So what is the output of your micro really sending? Maybe it is falling into the 'undetermined' range of your PC's serial port hardware, and thus the pinchanged event is not being fired as yo would expect.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|