CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How to use the Hyperterminal program
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








PostPosted: Mon Oct 03, 2005 7:41 pm     Reply with quote

Quote:
OK - you will need to create a file with the bytes you want to send.

You say you want to send 0x0f. If you mean the bit pattern 0000 1111 then you will need to use some kind of hex editor to create the file or write a C or Visual Basic (or language of your choice) program to create the file. If you mean to send the characters '0' 'x' '0' 'f' then just use Notepad.

Under the Transfer menu you just pick Send Text File. Just because it says "text file" it doesn't mean it has to contain the alphabet. Hyperterminal will just step throught the file byte-by-byte and send each one. No error corrections. If you have monkeyed with the settings for your terminal and asked it to send extra line-feeds and such, you will need to turn those things off.


I want to send a txt file to my PIC (16F877A). Hyperterminal is working great to receive test printf statements. But how to send a txt file? Using the above instructions -which match perfectly to instructions I have seen using Google- there is no indication that anything is happening. Is there a way to know if send text file has worked? I am using a txt file with under 500 lines, but would be curious to know has anyone found a way to send more than 500 lines?
When I "read all" (using ICPROG) to see if the file has been sent to the pic, it is not there.

Which makes the question: where does the file go if you do not tell it where to go?
And: how do you write the code to put the data into a specific location?

And: where would be a good location to put this data if I intend to take it out again and store it in an ext eeprom?

Thanks muchly-
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Oct 04, 2005 7:20 am     Reply with quote

Anonymous wrote:


I want to send a txt file to my PIC (16F877A). Hyperterminal is working great to receive test printf statements. But how to send a txt file? Using the above instructions -which match perfectly to instructions I have seen using Google- there is no indication that anything is happening. Is there a way to know if send text file has worked? I am using a txt file with under 500 lines, but would be curious to know has anyone found a way to send more than 500 lines?
When I "read all" (using ICPROG) to see if the file has been sent to the pic, it is not there.

Which makes the question: where does the file go if you do not tell it where to go?
And: how do you write the code to put the data into a specific location?

And: where would be a good location to put this data if I intend to take it out again and store it in an ext eeprom?

Thanks muchly-


So are you asking how to tell if data is coming out of the PC via RS232 port? Use an oscilloscope and watch the TX line.

Do you have the flow control settings configured for NONE (assuming you are just using the RX and TX line and didn't write XON/XOFF flow control code for your PIC)?

Are you sure the code in your PIC is working correctly for receiving data? Are you checking the "errors" bit in side the PIC for indication of data overrun?

Are you expecting to save the entire file in the PIC16F877A's RAM? You will probably need to write your own memory management routines but still there isn't much memory to manage. Are you writing to the 877A's internal EEPROM or FLASH? Watch your timings and interruptions. Are you writing the data to external NV-memory?
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Guest








PostPosted: Tue Oct 04, 2005 8:11 am     Reply with quote

Quote:
So are you asking how to tell if data is coming out of the PC via RS232 port? Use an oscilloscope and watch the TX line.

Duh- thanks! Embarassed

Quote:

Do you have the flow control settings configured for NONE (assuming you are just using the RX and TX line and didn't write XON/XOFF flow control code for your PIC)?

Yes.

Quote:

Are you sure the code in your PIC is working correctly for receiving data? Are you checking the "errors" bit in side the PIC for indication of data overrun?

No- I don't know how to write code to receive data...or how to check errors bit inside PIC. Can you point me in the right direction to learn how to do this?

Quote:

Are you expecting to save the entire file in the PIC16F877A's RAM? You will probably need to write your own memory management routines but still there isn't much memory to manage. Are you writing to the 877A's internal EEPROM or FLASH? Watch your timings and interruptions. Are you writing the data to external NV-memory

I want to pass the data through the PIC's RAM to an ext NV eeprom (24C256). I have read lots of stuff already on this forum but obviously still clueless... Confused

Thanks-
SophE
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Oct 04, 2005 3:40 pm     Reply with quote

[quote="Anonymous
Quote:

Are you sure the code in your PIC is working correctly for receiving data? Are you checking the "errors" bit in side the PIC for indication of data overrun?

No- I don't know how to write code to receive data...or how to check errors bit inside PIC. Can you point me in the right direction to learn how to do this?
Thanks-
SophE[/quote]

EX_SISR.C that was installed as one of the examples shows one way to buffer incoming serial data.

There are some simple RS232 examples in the manual and of course, search this forum...
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
elbhiri
Guest







Re: How to use the Hiperterminal program
PostPosted: Fri Jun 02, 2006 3:58 pm     Reply with quote

[quote="Tomi"]Hyperterminal is a standard part of the Windows systems. You can install it using Control Panel-Add Programs-Windows Setup.
But lot of people don't suggest it to use as HW terminal tool and I think they are right.
Hyperterminal is a free and WYSIGPF (What You See Is General Protection Fault) program :).

:=Hi Guys:
:= Who knows how to use the software of Hiperterminal. This is a communication software between PC and equipment connected through serial port. Where can I get this sofeware?
:=
:= Very thanks for your help
:=
:=Sicnerely
:=
:=Alex
___________________________
This message was ported from CCS's old forum
Original Post ID: 2838[/quote]
DonWare



Joined: 18 Jan 2006
Posts: 43

View user's profile Send private message

Terminal Program
PostPosted: Mon Jun 05, 2006 7:38 am     Reply with quote

I took a quick look at Hyperterminal and found it lacking.

I use the old "Terminal.exe" dated 11-1-93. It runs under windows XP and provides programmable function keys. Also it's not so modem-oriented. Maybe you can get a copy. I guess it dates back to Windows 3.1 or 3.1.1.

To see non-visible characters I use an older prgoram called Crosstalk that will display incoming characters in ASCII notation ie: [CR], [ESC] etc and will also display charactes in their Hex.

Good luck.
Don
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Wed Jun 07, 2006 4:24 pm     Reply with quote

Hyperterminal has many undocumented features ( a.k.a bugs).
If you have the CCS IDE use CCS's PC serial IO software. Teraterm is a good free to download alternative. Hyperterminal might work well enough between modems and other PC's but don't expect much when outside any area they didn't expect a user to go ( for example PIC Rs232 communication).
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group