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 support@ccsinfo.com

Rs232 & hyperterminal

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
janiga



Joined: 10 Apr 2006
Posts: 22

View user's profile Send private message

Rs232 & hyperterminal
PostPosted: Mon May 01, 2006 5:01 pm     Reply with quote

Hello

How can i see the printf"hello" on my pc. I have connected an interface but i am not sure what the settings ought to be in hyperterminal. I can see the data on pin c6 with my scope but nothing shows on my pc. can anyone shed some light on this interface.

Code:

#include <16F917.h>
#fuses INTRC_IO, NOWDT, NOPROTECT
#use delay (clock = 8000000)
#use rs232(baud=9600, xmit=PIN_C6,rcv=PIN_C7)

void main()
{
setup_oscillator(OSC_8MHZ);
while(1)
{
   output_high(PIN_A0);
   delay_ms(1000);
   output_low(PIN_A0);
   delay_ms(1000);
   printf("Hello");

}
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 02, 2006 12:24 am     Reply with quote

Here is a post that describes how to setup Hyperterminal:
http://www.ccsinfo.com/forum/viewtopic.php?t=9253&start=1

Here is the CCS FAQ article on RS-232 problems:
http://www.ccsinfo.com/faq.php?4

Here is a schematic of a MAX232 circuit:
http://web.ukonline.co.uk/j.winpenny/pic/rs232x.gif
Note that if you're using a MAX232A, then you should use 0.1 uF
capacitors, instead of the 1 uF caps.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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