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

Can't receive data from my computer with RS232
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
asmallri



Joined: 12 Aug 2004
Posts: 1679
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Sep 29, 2004 9:40 am     Reply with quote

Have you tried adding #use fast_io(C) ?
asmallri



Joined: 12 Aug 2004
Posts: 1679
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Sep 29, 2004 9:45 am     Reply with quote

Here is something you can try. Add code to toggle the RX pin every second. If it is really an input then nothing will happen. If on the other hand it is an output (which would explain the 2 volt reading) you will see the output alternate between 2 volts and 5 volts.
YulL



Joined: 29 Sep 2004
Posts: 39
Location: Paris (France)

View user's profile Send private message

PostPosted: Wed Sep 29, 2004 9:50 am     Reply with quote

I've invastigated and thought that the problem don't come from the PIC but from the MAX232CPE device... When I cut the connection between RC7 and MAX232 the RC7 return to 0V : normal... But the R2out of the MAX232 is always at +2V... Is the device dead??

Thanks a lot for your support Cool
asmallri



Joined: 12 Aug 2004
Posts: 1679
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Sep 29, 2004 9:55 am     Reply with quote

If noting else is connected to the pin then yes - your max232 is the culprit.

What about the other line receiver on pin 12? Is it in use? What is the output voltage on that pin?
YulL



Joined: 29 Sep 2004
Posts: 39
Location: Paris (France)

View user's profile Send private message

PostPosted: Wed Sep 29, 2004 9:57 am     Reply with quote

Pin 12 and Pin 9 are always +2V Crying or Very sad Crying or Very sad
YulL



Joined: 29 Sep 2004
Posts: 39
Location: Paris (France)

View user's profile Send private message

PostPosted: Wed Sep 29, 2004 10:24 am     Reply with quote

IT WORKS!!!!!!!!!!! Very Happy

The problem was the alimentation of the MAX232 : wrong wiring Evil or Very Mad

I'm so silly...

Rolling Eyes
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