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 support@ccsinfo.com

RS232 pic <--> PC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Louati



Joined: 26 Mar 2012
Posts: 16

View user's profile Send private message

RS232 pic <--> PC
PostPosted: Mon Mar 26, 2012 11:24 am     Reply with quote

Hello Smile
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

View user's profile Send private message

PostPosted: Mon Mar 26, 2012 12:16 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Mar 26, 2012 12:28 pm     Reply with quote

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

View user's profile Send private message

UART problem
PostPosted: Mon Mar 26, 2012 2:43 pm     Reply with quote

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: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Mar 26, 2012 3:59 pm     Reply with quote

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: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Mar 26, 2012 5:14 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Mar 27, 2012 10:50 am     Reply with quote

Actually it just a problem of inverting input and output Smile
It's on right now Smile Thanks for help Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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