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

Huge Problem with getch() Need Help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 03, 2009 7:14 pm     Reply with quote

Did you misunderstand my post ? Upgrading the compiler, while it's a
good idea, will probably not fix your current problem. Your problem is in
your PIC board or in your PC.
misperry



Joined: 03 Mar 2009
Posts: 40

View user's profile Send private message

PostPosted: Wed Mar 04, 2009 9:03 am     Reply with quote

No I didn't misunderstand it is just that when I run the program it is skipping the getch() command. Because I don't touch anything, just turn the power on and it starts printing the line "it is:" over and over for ever. Thus confirming that it is skipping the getch() function or that it is not halting the code at the getch() line and waiting for the a character. This is the frustrating part. However, I took your advice and changed the cable, max232 chip, and changed computers but still get the same results. This is why I feel that the compiler has a problem with it.

Oh yeah I see that yours works fine and so did mine for two moths! However, it just decided to stop working one day. And that day was yesterday. But, as I said, when I first put this together it worked like a charm and I was very happy with it. But now, for no apparent reason, it decided to not work anymore and I am totally stumped.

Please let me know your thoughts? It is frying my brain (he he)
misperry



Joined: 03 Mar 2009
Posts: 40

View user's profile Send private message

PostPosted: Wed Mar 04, 2009 9:19 am     Reply with quote

WAIT I FOUND IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Can you believe it that I had two bad cables!! What luck. I just put a gender chainger on the com port so I could plug wire directly into the com port pins and then directly into the max232 chip. Once I did this everything worked perfect. Oh thank you so much for all your help PCM programmer. You are a life saver!

You have a great day!

THANK YOU SOOOOOO MUCH!!!
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
Page 2 of 2

 
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