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

printf() works fine, but getc() or getchar() just hangs

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







printf() works fine, but getc() or getchar() just hangs
PostPosted: Thu Feb 19, 2004 12:29 pm     Reply with quote

PIC18F442
PICDEM-2 Plus from Microchip (RC6,RC7 is Tx/Rx)
FYI...ICDU is also used, but that' shouldn't matter

My printf() works fine, but getc() hangs. I tried figuring it out from past posts, but can't find an obvious cause.

Anyone have any insight into this?
Thanks,
Mike
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Thu Feb 19, 2004 12:52 pm     Reply with quote

Include kbhit() and also use errors in the #use statement.
valemike
Guest







It was a Hyperterminal thing...
PostPosted: Thu Feb 19, 2004 4:08 pm     Reply with quote

Thanks for the response.

I found out it was a Hyperterminal configuration.
Looks like I shouldn't be using Hardware Flow Control.

-Mike
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