Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 11:33:11 11:33


Login with username, password and session length


Pages: [1]
Print
Author Topic: Communication using MAX232  (Read 1627 times)
0 Members and 1 Guest are viewing this topic.
king
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 2
-Receive: 21


Jack of All But Master of One


« on: April 04, 2010, 10:19:46 10:19 »

Hi
Actually when i have read the help file of "Proton" then in serout and serin command help file they have used the sentence that "MAX232 inverts the serial polarity" what does it mean?

Because if PC is transferring data "11001101" (-12v,-12v,+12v,+12v,-12v,-12v,+12v,-12v) then after max232 we will get (+5v,+5v,0v,0v,+5v,+5v,0v,+5v) again "11001101" so how max232 inverts serial polarity.Please explain it

Regards

King
Logged
oldvan
V.I.P
Senior Member
*****
Offline Offline

Posts: 375

Thank You
-Given: 152
-Receive: 106


If the van is a Rockin'...


WWW
« Reply #1 on: April 04, 2010, 11:18:40 11:18 »

TTL level serial +5 is "1" and 0V is "0"

RS232 level -12 is "1" and +12 is "0"

So MAX232 does the conversion correctly.
Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
odsk
Junior Member
**
Offline Offline

Posts: 53

Thank You
-Given: 11
-Receive: 12


« Reply #2 on: April 05, 2010, 05:37:56 17:37 »

Hi

I think the MAX232 will invert the polarity also, check the datasheet and the block diagram you will see that they represent it like an inverter.
odsk
Logged
shibuv
Newbie
*
Offline Offline

Posts: 30

Thank You
-Given: 0
-Receive: 7


WWW
« Reply #3 on: April 07, 2010, 12:33:58 12:33 »


Hello

All outputs are inverted but you don't bother about it if you communicate with PC

see the digram

http://picmicrochip.blogspot.com/2010/01/how-to-interface-pic16f877a-18f452-with.html

shibuv
Logged
DreamCat
Active Member
***
Offline Offline

Posts: 235

Thank You
-Given: 130
-Receive: 77



« Reply #4 on: April 08, 2010, 04:07:09 16:07 »

Actually, you don't need consider the inverter, RS-232 standard and MAX232 only is a middle process, only if you want use discrete components build the tranceiver.
Logged

May be I expressed the wrong meaning, sorry for my bad english. Please correct it for me if you can.
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC