Click here to Skip to main content
16,012,759 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 5:48
turbosupramk32-Nov-11 5:48 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 6:52
sitebuilderLuc Pattyn2-Nov-11 6:52 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:00
turbosupramk32-Nov-11 9:00 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 9:11
sitebuilderLuc Pattyn2-Nov-11 9:11 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:54
turbosupramk32-Nov-11 9:54 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 10:10
sitebuilderLuc Pattyn2-Nov-11 10:10 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 11:03
turbosupramk32-Nov-11 11:03 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 11:20
sitebuilderLuc Pattyn2-Nov-11 11:20 
turbosupramk3 wrote:
so the bottle neck has to be in the serial portion of it.

Nope. A lot of things could cause less than real-time behavior. The Windows serial port is heavily buffered, your outgoing data is copied several times, and collected, regrouped, eventually sent out; so it could cause delays. But then a number of Windows timers have their limitations (I wrote an article on the subject). And overall Windows isn't a real-time operating system, it is intended to either serve a single human being typing and clicking away, or (as a server) a number of non-time-critical requests from a lot of loosely connected clients. In either case, reaction times in the order of 10 to 100 msec are considered "good enough".

If you want a LED to flash, have your microcontroller do that, and have your PC just send one command to start it.


turbosupramk3 wrote:
the uC only functions at 8N1

That means it uses 8 data bits, no parity, and will SEND using a single stop bit. It will receive and understand anything that has 1 or more stop bits.


turbosupramk3 wrote:
I have added the 10MS wait per your advice

That was suggested between opening the port and sending the first message; I trust you keep the port open, so there normally would be no need once the port has been open for such period. Unless the target is "serially deaf" while executing your previous command, then your PC would require a fixed period in between serial commands. Either the target's doc, or some experiments, should point that out. Obviously, opening and closing the port all the time could be detrimental to the comm performance.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 11:37
turbosupramk32-Nov-11 11:37 
GeneralRe: Please help with writing to a serial port Pin
Rob Philpott2-Nov-11 7:34
Rob Philpott2-Nov-11 7:34 
AnswerRe: Please help with writing to a serial port Pin
PIEBALDconsult2-Nov-11 9:00
mvePIEBALDconsult2-Nov-11 9:00 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:10
turbosupramk32-Nov-11 9:10 
AnswerRe: Please help with writing to a serial port Pin
Alan N2-Nov-11 10:12
Alan N2-Nov-11 10:12 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 11:40
turbosupramk32-Nov-11 11:40 
Questionerror handling Pin
dcof1-Nov-11 17:46
dcof1-Nov-11 17:46 
AnswerRe: error handling Pin
Luc Pattyn1-Nov-11 18:10
sitebuilderLuc Pattyn1-Nov-11 18:10 
GeneralRe: error handling Pin
Wayne Gaylard1-Nov-11 19:09
professionalWayne Gaylard1-Nov-11 19:09 
GeneralRe: error handling Pin
dcof2-Nov-11 4:13
dcof2-Nov-11 4:13 
GeneralRe: error handling Pin
fjdiewornncalwe2-Nov-11 4:21
professionalfjdiewornncalwe2-Nov-11 4:21 
AnswerRe: error handling Pin
Luc Pattyn2-Nov-11 4:25
sitebuilderLuc Pattyn2-Nov-11 4:25 
AnswerRe: error handling Pin
AditSheth1-Nov-11 18:32
AditSheth1-Nov-11 18:32 
GeneralRe: error handling Pin
Pete O'Hanlon1-Nov-11 21:04
mvePete O'Hanlon1-Nov-11 21:04 
GeneralRe: error handling Pin
BobJanova1-Nov-11 23:55
BobJanova1-Nov-11 23:55 
AnswerRe: error handling Pin
V.2-Nov-11 0:22
professionalV.2-Nov-11 0:22 
QuestionWin service jumps out Pin
suunker1-Nov-11 10:01
suunker1-Nov-11 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.