Searching \ for '[PIC]: Serial Communication with HyerTerminal on P' 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: 'Serial Communication with HyerTerminal on P'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Serial Communication with HyerTerminal on P'
2004\01\06@220521 by David Dolheguy

flavicon
face
Hey all...


I am using the HTSOFT PIC18 C compiler and need to write a little
program to send and receive data to and from a PC through the serial
port probably using HyperTerminal.


I am fairly new to these chips and have purchased the PIC18F8720 with
development board and I2C programmer.


Can someone please help me? Either point me to an example or send one
through please.

Thanks


Dave...



*********************************************************************************
The information contained in this e-mail message and any accompanying files is or may be confidential.  If you are not the intended recipient, any use, dissemination, reliance, forwarding, printing or copying of this e-mail or any attached files is unauthorised. This e-mail is subject to copyright. No part of it should be reproduced, adapted or communicated without the written consent of the copyright owner. If you have received this e-mail in error, please advise the sender immediately by return e-mail, or telephone and delete all copies. Fairfax does not guarantee the accuracy or completeness of any information contained in this e-mail or attached files. Internet communications are not secure, therefore Fairfax does not accept legal responsibility for the contents of this message or attached files.
*********************************************************************************


--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu

2004\01\06@221803 by Josh Koffman

flavicon
face
I don't use a C compiler, so I can't help you directly. However, your
compiler manufacturer might have examples on their website, and there is
a fantastic code library at the http://www.piclist.com website.

As I'm sure others will chime in, it may help you to write a few
programs in assembly so as to better learn the functioning of the chip.

Josh
--
A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete
fools.
       -Douglas Adams

David Dolheguy wrote:
> I am fairly new to these chips and have purchased the PIC18F8720 with
> development board and I2C programmer.

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu

2004\01\07@014149 by scii?B?VHVncnVsIEdVQ0xV?=

flavicon
face
I haven't used that compiler , mine is MPLAB.
First you have to set RS232 interrupts and write a routine that checks for
input from RS 232 .And must initizalize it in a infinite loop in main.


{Original Message removed}

2004\01\07@035903 by

picon face
David Dolheguy wrote :
> Hey all...

Hi.

> I am using the HTSOFT PIC18 C compiler and need to write a little
> program to send and receive data to and from a PC through the serial
> port probably using HyperTerminal.

Is this just to test the serial comm ? Sholdn't the PIC do
something with the recevied data ?

> I am fairly new to these chips and have purchased the PIC18F8720 with
> development board and I2C programmer.

What exactly does "fairly new" meen in this context ? Have yo been
using PIC's at all before ? What "development board" ?

> Can someone please help me? Either point me to an example or send one
> through please.

Well, we don't know at this time if we should start with realy
basic PIC-stuff (if you're a complete PIC beginner), or if it's
just the serial stuff you have problems with. You must be
*much* more specific in your questions when asking. What is it
that doesn't work ? Any error messages ? What data sheets have you
been reading ? And what is it in them that was unclear or that
you didn't understand ?

Best Regards
Jan-Erik.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\01\07@100308 by llile

flavicon
face
Well, the first hurdle is clock speed.  If you are using a crystal such as
18.2 MHz that divides nicely to an even baud rate, you are in luck.  If
you are using a 10 MHz or 4 MHz crystal, your baud rate won't match
precisely and you will get occasional errors.  If you are using an RC
oscillator, forget RS232 communications.

You will, of course, need a serial output routine which you can find at
Shane Tolme's site, http://www.microchipc.com/.

The second hurdle is inverting the RS232 data.  Your PIC will produce
signals that are inverted from real RS232 levels.   You will also need a
MAX232 chip to invert the signals levels.

Hyperterminal is not a great comms program, but we are all stuck with it
now.  I worked for Procomm Plus in the late 80's, and it was far better
but driven out of business by Microsoft.

-- Lawrence Lile





David Dolheguy <DDolheguyspamKILLspamTHEAGE.COM.AU>
Sent by: pic microcontroller discussion list <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>
01/06/2004 09:04 PM
Please respond to pic microcontroller discussion list


       To:     EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU
       cc:
       Subject:        [PIC]: Serial Communication with HyerTerminal on PC


Hey all...



I am using the HTSOFT PIC18 C compiler and need to write a little
program to send and receive data to and from a PC through the serial
port probably using HyperTerminal.



I am fairly new to these chips and have purchased the PIC18F8720 with
development board and I2C programmer.



Can someone please help me? Either point me to an example or send one
through please.



Thanks



Dave...



*********************************************************************************
The information contained in this e-mail message and any accompanying
files is or may be confidential.  If you are not the intended recipient,
any use, dissemination, reliance, forwarding, printing or copying of this
e-mail or any attached files is unauthorised. This e-mail is subject to
copyright. No part of it should be reproduced, adapted or communicated
without the written consent of the copyright owner. If you have received
this e-mail in error, please advise the sender immediately by return
e-mail, or telephone and delete all copies. Fairfax does not guarantee the
accuracy or completeness of any information contained in this e-mail or
attached files. Internet communications are not secure, therefore Fairfax
does not accept legal responsibility for the contents of this message or
attached files.
*********************************************************************************


--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamspam_OUTmitvma.mit.edu



--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\01\07@102142 by

picon face
llile@SALTONUSA.COM wrote :

> Well, the first hurdle is clock speed.  If you are using a
> crystal such as 18.2 MHz that divides nicely to an even baud
> rate, you are in luck.  If you are using a 10 MHz or 4 MHz
> crystal, your baud rate won't match precisely and you will
> get occasional errors.

Using a 10 or 4 Mhz xtal, doesn't means that you
*WILL* get "occasional errors". And even less so if you are
using any of the newer PICs with the 16 bit baudrate register
(which I don't think that the target PIC in this case has).

So, the fact that you are going to use RS232 comms, doesn't
disqualify "standard" xtals altogether.


> I worked for Procomm Plus in the late 80's, and it was
> far better but driven out of business by Microsoft.

Personaly I've been a 15+ year user of Reflection (2 and 4),
and still are...

Jan-Erik.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\01\07@104547 by Alan B. Pearce

face picon face
>Hyperterminal is not a great comms program, but
>we are all stuck with it now.

Agreed, and so I did something else.

>I worked for Procomm Plus in the late 80's, and it
>was far better but driven out of business by Microsoft.

But there is a Microsoft product that is just soooo much better than
HyperTerminal. Get a copy of Windows 3 and grab the "terminal.*" files off
the windows directory, and put them on your NT machine. Works like a charm.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\01\07@111415 by Roy J. Gromlich

picon face
TeraTerm is probably the best terminal FREE program I have used. It appears to work on just about anything and comes in a secure version if you feel the need for it.

Roy
{Original Message removed}

2004\01\08@130414 by Gary Chung

flavicon
face
Try http://www.docklight.de/


{Quote hidden}

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 02-01-04

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

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