Searching \ for '[OT] PIC with Serial comms in VB' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=serial
Search entire site for: 'PIC with Serial comms in VB'.

Exact match. Not showing close matches.
PICList Thread
'[OT] PIC with Serial comms in VB'
2000\03\03@020553 by Joe Dudas

picon face
Ok, I am now both confused and quite frustrated. I finally have a logic
probe connected to the TX line (which goes from PIC to PC), and it indicates
something is indeed being sent. However, when I used the mscomm1.input
method to put the input buffer into a variable, all I'm left with is an
empty variable. Its not null, just empty. I have tried leaving the port open
for an entire second, still nothing. It's not likely that my timing is off.
I've tried setting the recieve threshold such that an interrupt will be
generated for every single character recieved. Nope. No interrupt is
generated. I have no idea what I'm doing wrong.

One last thing. I am really confused as to how the hardware flow control is
supposed to work. I understand the concept, however, I am unable to find any
sources as to which lines are asserted when.

If you're confused as to what I'm talking about above, I just started a new
thread, mostly because I have no idea how to reply to an existing one.

Thanks for bearing with a newbie,
Joe

2000\03\03@030341 by Tim Hamel

picon face
One thing I can think of....assuming your buffer is named "MyBuffer," try
this:

MyBuffer=String$(buffersize,0)

That SHOULD initialize the variable to a known size. Also, "buffersize" is
how big your buffer is.

Regards,

Tim Hamel


In a message dated 3/2/00 11:06:14 PM Pacific Standard Time, spam_OUTjoey6TakeThisOuTspamHOME.COM
writes:

> Ok, I am now both confused and quite frustrated. I finally have a logic
>  probe connected to the TX line (which goes from PIC to PC), and it
indicates
>  something is indeed being sent. However, when I used the mscomm1.input
>  method to put the input buffer into a variable, all I'm left with is an
>  empty variable. Its not null, just empty. I have tried leaving the port
open
>  for an entire second, still nothing. It's not likely that my timing is off.
>  I've tried setting the recieve threshold such that an interrupt will be
>  generated for every single character recieved. Nope. No interrupt is
>  generated. I have no idea what I'm doing wrong.
>
>  One last thing. I am really confused as to how the hardware flow control is
>  supposed to work. I understand the concept, however, I am unable to find
any
>  sources as to which lines are asserted when.
>
>  If you're confused as to what I'm talking about above, I just started a new
>  thread, mostly because I have no idea how to reply to an existing one.
>
>  Thanks for bearing with a newbie,
>  Joe
>

2000\03\03@151102 by jamesnewton

face picon face
See
http://techref.massmind.org/io/serial/rs232
for general info and
techref.massmind.org/io/serial/rs232sigs
for the signal descriptions and
http://techref.massmind.org/io/serial/seq1
for an example

Clear your mind, read the signal descriptions and all will be clear (I
hope).
---
James Newton .....jamesnewtonKILLspamspam@spam@geocities.com 1-619-652-0593
http://techref.massmind.org NEW! FINALLY A REAL NAME!
Members can add private/public comments/pages ($0 TANSTAAFL web hosting)


{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...