Joined: 12 Aug 2004 Posts: 1679 Location: Perth, Australia
Posted: Wed Sep 29, 2004 9:40 am
Have you tried adding #use fast_io(C) ?
asmallri
Joined: 12 Aug 2004 Posts: 1679 Location: Perth, Australia
Posted: Wed Sep 29, 2004 9:45 am
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)
Posted: Wed Sep 29, 2004 9:50 am
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
asmallri
Joined: 12 Aug 2004 Posts: 1679 Location: Perth, Australia
Posted: Wed Sep 29, 2004 9:55 am
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)
Posted: Wed Sep 29, 2004 9:57 am
Pin 12 and Pin 9 are always +2V
YulL
Joined: 29 Sep 2004 Posts: 39 Location: Paris (France)
Posted: Wed Sep 29, 2004 10:24 am
IT WORKS!!!!!!!!!!!
The problem was the alimentation of the MAX232 : wrong wiring
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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