Searching \ for 'PIC Serial Communications with Laptops' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/ios.htm?key=serial
Search entire site for: 'PIC Serial Communications with Laptops'.

Truncated match.
PICList Thread
'PIC Serial Communications with Laptops'
1999\02\17@112243 by T.J. Day

flavicon
face
part 0 1491 bytes
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 face=Arial size=2>I am a student working on a project
that involves programming a PICstick&nbsp; 16F84.</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>We are trying to program the PIC
utilizing the serin / out concurrently. We are having trouble with our laptop
receiving the data. Why?</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>Also there is some confusion with the
TRIS direction and register in / out, how is that dealt with? </FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>Can we program the PIC via the serin
avenue?</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 face=Arial size=2>Any help would
&quot;help&quot;!</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 face=Arial size=2>TJ</FONT></DIV></BODY></HTML>

</x-html>

1999\02\17@122237 by andre

flavicon
face
TJ.,

T.J. Day wrote:

{Quote hidden}

1999\02\20@082414 by paulb

flavicon
face
T.J. Day wrote:

> We are trying to program the PIC utilizing the serin / out
> concurrently.  We are having trouble with our laptop receiving the
> data. Why?

 When you say "concurrently", do you mean *at the same time*?  The
PICstick (Simmstick") can only do one thing at a time.

 Keep in mind that the UART in the PC considers the received character
complete halfway through the stop bit and if it replies *immediately*,
it may start sending its reply before the Simmstick has finished the
other half of the stop bit and started its receive scanning, since it
cannot both receive and transmit simultaneously or buffer as the PC UART
does.

 This could cause the first character not to be received properly and
if others follow immediately, it may not resynchronise for a while
either.  Set the PC serial port to two stop bits if possible.

 This would only apply if you are using a program on the PC (laptop)
which automatically responds to the data from the Simmstick.

> Also there is some confusion with the TRIS direction and register in/
> out, how is that dealt with?

 I suggest you don't try to use the same line for serial in *and* out
if you can avoid it - this trick is very involved!  Just set TRIS for
each bit of the port according to whether you need an input (1) or an
output (0).

 And it's generally easier and perfectly safe to use the "superceded"
TRIS PORTx instruction instead of setting the RP0 bit and playing with
the TRISx register. ;-)

> Can we program the PIC via the serin avenue?

 Only if you use another PIC to actually receive the serial data and
implement the ISP programming algorithm.
--
 Cheers,
       Paul B.

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