View previous topic :: View next topic |
Author |
Message |
Louati
Joined: 26 Mar 2012 Posts: 16
|
RS232 pic <--> PC |
Posted: Mon Mar 26, 2012 11:24 am |
|
|
Hello
I have a little problem with communication rs232, in fact when I do simulation with Proteus ISIS it's working but when I integrate the chip Max232, infomations are received but they are all false :(
Even in practice the same problem :/
I supposed that the max232 is not working so I integrated another pic and I used the Max232 to transfer informations from pic1 to pic2 and it's working !! |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Mon Mar 26, 2012 12:16 pm |
|
|
Have you verified the voltage levels are correct on the max232 chip ? (the correct charge pump caps are in place). How are you trying to talk to it from the PC ? Hyperterminal or just what? What does a scope (if you have one available) show on the tx and rx lines to/from the pc ? Remember that RS232 is inverted, so a "1" from the PIC should be a negative voltage on the MAX232 chip.
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
Louati
Joined: 26 Mar 2012 Posts: 16
|
|
Posted: Mon Mar 26, 2012 12:28 pm |
|
|
gpsmikey wrote: | Have you verified the voltage levels are correct on the max232 chip ? (the correct charge pump caps are in place). How are you trying to talk to it from the PC ? Hyperterminal or just what? What does a scope (if you have one available) show on the tx and rx lines to/from the pc ? Remember that RS232 is inverted, so a "1" from the PIC should be a negative voltage on the MAX232 chip.
mikey |
For the problem of voltage it's on right, I checked that.
I use MATLAB to send informations.
I do not have an oscilloscope :/
I use an converter usb --> rs232. |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
UART problem |
Posted: Mon Mar 26, 2012 2:43 pm |
|
|
Describe the problem you are seeing.
The CCS manual suggests several tests for RS232 links.
CCS also provide example programs which can be used with a PC to verify correct operation.
Mike |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Mon Mar 26, 2012 3:59 pm |
|
|
You should also do a loopback test of your 'USB<-> RS-232' convertor. Not all actually work ! I have 2 new ones here both fail miserably.
Useless Serial Bus....sigh, bring back REAL comports! |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Mon Mar 26, 2012 5:14 pm |
|
|
temtronic wrote: | You should also do a loopback test of your 'USB<-> RS-232' convertor. Not all actually work ! I have 2 new ones here both fail miserably.
Useless Serial Bus....sigh, bring back REAL comports! |
No kidding.
I've tried plugging in multiple vendors' worth of USB->RS232 into a single computer...
yea... welcome to unhappy driver-land.
(shaking head)
-ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
Louati
Joined: 26 Mar 2012 Posts: 16
|
|
Posted: Tue Mar 27, 2012 10:50 am |
|
|
Actually it just a problem of inverting input and output
It's on right now Thanks for help |
|
|
|