Should I use a MAX232 in my design ?

L

LBNote

Guest
Hi all,

I have a working design using a PIC 16F84A interfacing to a PC serial port.
At the moment I'm just using a few resistors in the circuit and it's working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?

I plan on supporting the product so I want to make sure I'm not shooting
myself in the foot by not adding in the components now is, I guess where
I'm coming from with these questions:


Thanks
 
"LBNote" <lbonnell@ozemail.com.ua> wrote in message
news:bg21lv$ota$1@gnamma.connect.com.au...
Hi all,

I have a working design using a PIC 16F84A interfacing to a PC serial
port.
At the moment I'm just using a few resistors in the circuit and it's
working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?

I plan on supporting the product so I want to make sure I'm not shooting
myself in the foot by not adding in the components now is, I guess where
I'm coming from with these questions:


Thanks

My immediate reaction is "yes, use one", but if you're only travelling short
distances and it's working, then it's probably okay. Particularly as you've
no doubt tried it out on a whole variety of different motherboards to make
sure that their different serial port implementations don't affect
things.... :)

Cheers.

Ken
 
Thanks,

It's working with a 5 metre serial cable. I have tried with a couple of
different PC and it seems to be ok.
I guess I should try some more now that you mention it, maybe a lap top as
well.



"Ken Taylor" <ken123@xtra.co.nz> wrote in message
news:bg25i7$k8qi8$1@ID-76636.news.uni-berlin.de...
"LBNote" <lbonnell@ozemail.com.ua> wrote in message
news:bg21lv$ota$1@gnamma.connect.com.au...
Hi all,

I have a working design using a PIC 16F84A interfacing to a PC serial
port.
At the moment I'm just using a few resistors in the circuit and it's
working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?

I plan on supporting the product so I want to make sure I'm not shooting
myself in the foot by not adding in the components now is, I guess
where
I'm coming from with these questions:


Thanks

My immediate reaction is "yes, use one", but if you're only travelling
short
distances and it's working, then it's probably okay. Particularly as
you've
no doubt tried it out on a whole variety of different motherboards to make
sure that their different serial port implementations don't affect
things.... :)

Cheers.

Ken
 
"LBNote" <lbonnell@ozemail.com.ua> wrote in message
news:bg261u$qm6$1@gnamma.connect.com.au...
Thanks,

It's working with a 5 metre serial cable. I have tried with a couple of
different PC and it seems to be ok.
I guess I should try some more now that you mention it, maybe a lap top as
well.

To be honest I wouldn't use a crude method like that over even 5 metres.
Peter had some good suggestions in another reply. A resistive answer is
pretty evil in a commercial design really, no offence intended! :)


Cheers.

Ken

"Ken Taylor" <ken123@xtra.co.nz> wrote in message
news:bg25i7$k8qi8$1@ID-76636.news.uni-berlin.de...
"LBNote" <lbonnell@ozemail.com.ua> wrote in message
news:bg21lv$ota$1@gnamma.connect.com.au...
Hi all,

I have a working design using a PIC 16F84A interfacing to a PC serial
port.
At the moment I'm just using a few resistors in the circuit and it's
working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any
other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?

I plan on supporting the product so I want to make sure I'm not
shooting
myself in the foot by not adding in the components now is, I guess
where
I'm coming from with these questions:


Thanks

My immediate reaction is "yes, use one", but if you're only travelling
short
distances and it's working, then it's probably okay. Particularly as
you've
no doubt tried it out on a whole variety of different motherboards to
make
sure that their different serial port implementations don't affect
things.... :)

Cheers.

Ken
 
Hi Ken,

None Taken,

Will go down the MAX232 Road, thanks once again for your help.





"Ken Taylor" <ken123@xtra.co.nz> wrote in message
news:bg28c8$jocln$1@ID-76636.news.uni-berlin.de...
"LBNote" <lbonnell@ozemail.com.ua> wrote in message
news:bg261u$qm6$1@gnamma.connect.com.au...
Thanks,

It's working with a 5 metre serial cable. I have tried with a couple
of
different PC and it seems to be ok.
I guess I should try some more now that you mention it, maybe a lap top
as
well.

To be honest I wouldn't use a crude method like that over even 5 metres.
Peter had some good suggestions in another reply. A resistive answer is
pretty evil in a commercial design really, no offence intended! :)


Cheers.

Ken



"Ken Taylor" <ken123@xtra.co.nz> wrote in message
news:bg25i7$k8qi8$1@ID-76636.news.uni-berlin.de...
"LBNote" <lbonnell@ozemail.com.ua> wrote in message
news:bg21lv$ota$1@gnamma.connect.com.au...
Hi all,

I have a working design using a PIC 16F84A interfacing to a PC
serial
port.
At the moment I'm just using a few resistors in the circuit and it's
working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any
other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?

I plan on supporting the product so I want to make sure I'm not
shooting
myself in the foot by not adding in the components now is, I guess
where
I'm coming from with these questions:


Thanks

My immediate reaction is "yes, use one", but if you're only travelling
short
distances and it's working, then it's probably okay. Particularly as
you've
no doubt tried it out on a whole variety of different motherboards to
make
sure that their different serial port implementations don't affect
things.... :)

Cheers.

Ken
 
LBNote wrote:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?
As well as all the other responses, a TTL/RS232 interface will give some high
voltage protection. We have a recent design that blew the MAX232 every so
often, problem went away when we switched to the MAX202 (the ESD protected
version). Funny thing is, the older design never suffered any RS232 problems
other than the odd one out (rare).

2. What are the ramifications of not doing so ?
Other than reliability, compatibility. Some RS232 interfaces don't quite
accept levels as being what you *think* it should be when the voltages aren't
in spec. RS232 requires at least +/- 3v, but you've obviously found out that
0v works. This is not always the case though.

3. Am I stressing the micro with the current circuit I'm using ?
Probably not- most of the time. It's just the one situation you may come
across that blows the guts out of it where you're likely to come unstuck. Bet
it's the worst possible time too. :)

I plan on supporting the product so I want to make sure I'm not shooting
myself in the foot by not adding in the components now is, I guess where
I'm coming from with these questions:
Go with the MAX232 (or one of the el-cheapo pin-for-pin compatibles), let it
out into the wild, and see what happens. Go for the 202 if you start seeing
them blowing.

Remember you're going to have to invert the lines before feeding to the
TTL/RS232 driver/reciever.

--
Linux Registered User # 302622 <http://counter.li.org>
 
On Mon, 28 Jul 2003 12:27:09 +1000, "LBNote" <lbonnell@ozemail.com.ua>
wrote:

Hi all,

I have a working design using a PIC 16F84A interfacing to a PC serial port.
At the moment I'm just using a few resistors in the circuit and it's working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?
Last question first, we can't really tell without seeing the circuit.

Generally, TTL <-> bipolar RS232 interfacing has two implications:

(a) polarity.
More often than not, TTL high is equivalent to RS232 neg voltage. In
your case - obviously - you have this in hand.

(b) voltage swing.
You CAN directly connect TTL and RS232 with a number of caveats.
Although the standard specifies a zone (originally between +3V and
-3V) as "undefined", MOST serial ports complying with the original PC
(IBM Tech Ref Manual) will treat a TTL low as equivalent to a negative
input voltage, while a TTL high is well and truly accepted as RS232
positive. As RS232 outputs (per the standard) can withstand
indefinite shorts to ground or contention with another output
(opposite polarity implied), they will happily drive TTL inputs which
have clamps to +5V and ground rails.
The key words here are "most' and "complying ...". there are
nyumerous modern incarnations of serial ports which exhibit a more
fragile nature, while some are also ambiguous if not ambivalent about
a TTL low.

Over the past decade or more, I have built more TTL <-> RS232
interfaces than I care to remember, starting in the heyday of the C64.
Although these are genmerally trouble-free, I have come across
numerous "serial ports" - usually on laptops - which refused to
respond properly to known proven interfaces.

The two downsides of the MAX232 series of devices are straightforward
issues - they will cost a couple of bucks, and they occupy board real
estate. The upside is a very real increase in the confidence that the
device will work with whatever PC the end user throws at it. That is
a value judgement you alone can make.
 
LBNote wrote:
Hi all,

I have a working design using a PIC 16F84A interfacing to a PC serial port.
At the moment I'm just using a few resistors in the circuit and it's working
fine. I plan at some stage in the future to sell this product so my
questions are:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?
2. What are the ramifications of not doing so ?
3. Am I stressing the micro with the current circuit I'm using ?

I plan on supporting the product so I want to make sure I'm not shooting
myself in the foot by not adding in the components now is, I guess where
I'm coming from with these questions:

Thanks
1. Use the '232, or one of it's derivatives, or competitor components. Bear in
mind that Maxim sometimes stretch the delivery times, unless you are using
10's of thousands, and have delivery guarantees in place. This is one reason
why I prefer to obtain an alternative supplier as well. However, that being said,
Maxim do have a range of the '232s that have +/-15kV ESD protection. These have
the suffix 'E' after the number. There's also a version (MAX203E) that doesn't
have any external capacitors, but has 2 drivers and 2 receivers.

</RANT ON>
I just wish they'd produce a chip that has 1 driver, 1 receiver, ESD protection,
and no external capacitors, because there are so many micros that only have
one tx and one rx pin. The standard '232 part has two drivers and two receivers and
many times, half of the chip isn't used at all. That's just being wasted,
and you pay for that part of the chip that isn't used. That pisses me off a bit.
</RANT OFF>

2. You aren't using the standard voltage levels as specified by the RS-232 standards.
This can cause errors in data transmission, because levels aren't within the standard
voltage ranges (1 = -3V to -15V, 0 = +3V to +15V), ie what is the data when the voltage
is 2 volts ??. The maximum transmission distance is only about 15 metres anyway, but
you may find that some situations work better than others. This could have something
to do with the cable capacitance, which you probably wouldn't be able to control anyway.

3. Without knowing the circuit, how can we give an assessment of the current that's
flowing through the pin?

--

Regards
David Milne
 
"John Tserkezis" <jt@techniciansyndrome.org.invalid> wrote in message
news:3f24c567$0$26535$afc38c87@news.optusnet.com.au...
LBNote wrote:

1. Should include a MAX232 in my design now for reliability or any other
reasons ?

As well as all the other responses, a TTL/RS232 interface will give some
high
voltage protection. We have a recent design that blew the MAX232 every so
often, problem went away when we switched to the MAX202 (the ESD protected
version). Funny thing is, the older design never suffered any RS232
problems
other than the odd one out (rare).

The ESD issue was my main beef with long lead lengths, thanks for actually
putting it into words. :)
I've found earthing to the critical issue when RS232 drivers start blowing,
gotta be real careful about where you put your earth points.

Cheers.

Ken

2. What are the ramifications of not doing so ?

Other than reliability, compatibility. Some RS232 interfaces don't
quite
accept levels as being what you *think* it should be when the voltages
aren't
in spec. RS232 requires at least +/- 3v, but you've obviously found out
that
0v works. This is not always the case though.

3. Am I stressing the micro with the current circuit I'm using ?

Probably not- most of the time. It's just the one situation you may
come
across that blows the guts out of it where you're likely to come unstuck.
Bet
it's the worst possible time too. :)

I plan on supporting the product so I want to make sure I'm not shooting
myself in the foot by not adding in the components now is, I guess
where
I'm coming from with these questions:

Go with the MAX232 (or one of the el-cheapo pin-for-pin compatibles),
let it
out into the wild, and see what happens. Go for the 202 if you start
seeing
them blowing.

Remember you're going to have to invert the lines before feeding to the
TTL/RS232 driver/reciever.

--
Linux Registered User # 302622
http://counter.li.org
 
On Mon, 28 Jul 2003 21:38:07 +1000, David Milne
<dmmilne@ozemail.com.au> wrote:

(snip)

/RANT ON
I just wish they'd produce a chip that has 1 driver, 1 receiver, ESD protection,
and no external capacitors, because there are so many micros that only have
one tx and one rx pin. The standard '232 part has two drivers and two receivers and
many times, half of the chip isn't used at all. That's just being wasted,
and you pay for that part of the chip that isn't used. That pisses me off a bit.
/RANT OFF
(snip rest)

I find that almost invariably I need at least one handshake line each
direction, so 2+2 suits me fine.

I guess it's a bit like (?)picologic if that's the name - half of a
14-pin gate pack in an 8-pin box. Great for tight spaces. Depends on
your needs.
 

Welcome to EDABoard.com

Sponsor

Back
Top