Author Topic: MAX232N converter circuit idels at 5v  (Read 3487 times)

0 Members and 1 Guest are viewing this topic.

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
MAX232N converter circuit idels at 5v
« on: December 03, 2012, 11:22:58 pm »
Hi all,

For a project I needed to make a RS232 to CMOS level converter. So I went ahead with MAX232 and 4 1uF caps. Just followed the schemtic here:



This is the result from my PC's old school RS232 port (Yes I have a RS232 port on my PC!):



After I fed the same signal into my MAX232N chip, I noticed that when I do not send something, it is idle at +5V....is this what it should it be? is this cmos level (Considering 5v PP) if not, what can be wrong?!


for the 5v Vcc for the chip I used a LM7805 to convert 12v from a wall adapter to 5v and it works ok (I checked with multimeter).
« Last Edit: December 03, 2012, 11:26:07 pm by sean87 »
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline kxenos

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: gr
Re: MAX232N converter circuit idels at 5v
« Reply #1 on: December 03, 2012, 11:45:51 pm »
MAX232 has inverted buffers in it so I think it is correct. Doesn't it work?
 

Offline baljemmett

  • Supporter
  • ****
  • Posts: 665
  • Country: gb
Re: MAX232N converter circuit idels at 5v
« Reply #2 on: December 03, 2012, 11:48:29 pm »
Yes, that looks right -- RS232 idles in the logic high ('mark') state, so will be at 5V on the logic-level side of the MAX232.  The RS232 data signals themselves should be negative (between -3V and -15V, with -12V being a common standard) for a high, and positive (again, between 3V and 15V) for the logic low ('space') state, so it looks inverted compared to the logic-level signals your uC will be working with.  The MAX232 handles this inversion for you, in addition to the level shifting.

Just to make life interesting the RS232 control signals (DSR, DTR etc.) are not inverted, so a logic high is positive and a logic low is negative.  Since you aren't handling those at all you don't need to care about this, but it's worth bearing in mind if you do need to probe them at some point.
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: MAX232N converter circuit idels at 5v
« Reply #3 on: December 04, 2012, 12:10:50 am »
Thanks guys, I think its working fine since I managed send and receive correctly.
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: MAX232N converter circuit idels at 5v
« Reply #4 on: December 04, 2012, 12:53:28 am »
Most MAX232's seem to output around  +/- 8V on the RS232 side.
So not quite +/-12V but still within spec.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: MAX232N converter circuit idels at 5v
« Reply #5 on: December 04, 2012, 02:55:25 pm »
Most MAX232's seem to output around  +/- 8V on the RS232 side.
So not quite +/-12V but still within spec.

The first scope shot is from PC's serial port directly.
EMBEDONIX - Embedded Systems, Linux and good stuff!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf