| View previous topic :: View next topic |
| Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Mar 03, 2009 7:14 pm |
|
|
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
|
|
Posted: Wed Mar 04, 2009 9:03 am |
|
|
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
|
|
Posted: Wed Mar 04, 2009 9:19 am |
|
|
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!!! |
|
 |
|