Main Page | Report this Page
 
   
Science Forum Index  »  Electronics Forum  »  RS232 Voltage Levels
Page 1 of 1    
Author Message
Charles Jean
Posted: Thu Jan 05, 2006 7:09 pm
Guest
I've got a datasheet for a chip that takes an RS232 serial input with
a protocol of 9600,N,8,1. It indicates the voltage level at this
input is hardware-selectable to either +/- 12V(as found from a PC
serial port), and either normal or inverted TTL level(0-5V). I plan on
feeding this chip a TTL level serial stream by bit-banging it rather
than using a UART. I am familiar with the polarities and V
requirements of the "real" RS232 as shown in the example below for
ASCII 65("A"):


+15V-|------<--8 character bits---->--------------
| ___ _______________ ___
| |S | | | | |
| |T | | | | |
| |A | | | | |
+3V-|--|R-|--|--------------|--|--|--------------
| |T | | | | |INDETERMINATE
| | | | | | |VOLTAGE
0V-|--|B-|--|--------------|--|--|--------------
| |I | | | | |REGION
| |T | | | | |
-3V-|--|--|--|--------------|--|--|--------------
| | | | | | |
| | | | | | | TWO
| | | | | | | STOP
| | | | | | | BITS
____|__| |__| | | | | |__| |__|__| | | |
| 0 1 0 0 0 0 0 1 0 1 1
-15V-|------LSB------------------MSB--------------

Bit width = 1/9600 seconds = 104.2 microseconds


Can someone please educate me as to what are:

1)"normal" TTL RS232 voltage levels
2)"inverted" TTL RS232 voltage levels

TIA
Charlie
techie_alison
Posted: Thu Jan 05, 2006 7:09 pm
Guest
"Grant Edwards" <grante@visi.com> wrote in message
news:11rrh9c2vse2h8d@corp.supernews.com...
Quote:
On 2006-01-06, Charles Jean <alchemcj@earthlink.net> wrote:

Who's Mark?


Must be a spurious random message being generated by those TTL RS232
signals.

Hi Charlie, have a look at the MAX232 or MAX233 (no caps).

The only thing that springs to mind from reading your post is, "What on
earth does this mysterious chip do, what is it called, who makes it?"
Grant Edwards
Posted: Thu Jan 05, 2006 7:41 pm
Guest
On 2006-01-05, Charles Jean <alchemcj@earthlink.net> wrote:

Quote:
I am familiar with the polarities and V requirements of the
"real" RS232 as shown in the example below for ASCII 65("A"):


+15V-|------<--8 character bits---->--------------
| ___ _______________ ___
| |S | | | | |
| |T | | | | |
| |A | | | | |
+3V-|--|R-|--|--------------|--|--|--------------
| |T | | | | |INDETERMINATE
| | | | | | |VOLTAGE
0V-|--|B-|--|--------------|--|--|--------------
| |I | | | | |REGION
| |T | | | | |
-3V-|--|--|--|--------------|--|--|--------------
| | | | | | |
| | | | | | | TWO
| | | | | | | STOP
| | | | | | | BITS
____|__| |__| | | | | |__| |__|__| | | |
| 0 1 0 0 0 0 0 1 0 1 1
-15V-|------LSB------------------MSB--------------

Bit width = 1/9600 seconds = 104.2 microseconds


Can someone please educate me as to what are:

1)"normal" TTL RS232 voltage levels

There is no such thing as "TTL RS232 voltage" levels.

UARTs send/receive a logic "1" (e.g. 5V or 3.3V) for a mark,
and a logic "0" (e.g. 0V) for a space.

Quote:
2)"inverted" TTL RS232 voltage levels

You really don't know what it means to invert a TTL signal?

--
Grant Edwards grante Yow! Yow!
at
visi.com
Grant Edwards
Posted: Thu Jan 05, 2006 9:17 pm
Guest
David Tweed
Posted: Thu Jan 05, 2006 11:10 pm
Guest
Charles Jean wrote:
Quote:
Thanks Mark, for clearing that up. Does this look like the proper way
to send the chip an "A", then, with the mode set at "normal"
TTL(0-5V)? What are the indeterminate voltage limits? Any need for a
delay prior to sending the next character"?

|------<--8 character bits---->--------------
+5V_|___ ___ ___ ______
| |S | | | | | | | | | | |
| |T | | | | |2 STOP
| |A | | | | |BITS
+2.0V-|--|R-|--|--------------|--|--|--------------
| |T | | | | |
| | | | | | |INDETERMINATE
| |B | | | | |VOLTAGE
| |I | | | | |REGION
| |T | | | | |
+0.8V-|--|--|--|--------------|--|--|--------------
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
0V_| |__| |--|--|--|--|--| |__| | |
0 1 0 0 0 0 0 1 0 1 1
LSB MSB

Bit width = 1/9600 seconds = 104.2 microseconds

No delay should be required.

-- Dave Tweed
Jim Thompson
Posted: Fri Jan 06, 2006 12:08 am
Guest
On Fri, 6 Jan 2006 02:47:13 +0000 (UTC), "techie_alison"
<techie_alison@yahoo.com> wrote:

Quote:
"Grant Edwards" <grante@visi.com> wrote in message
news:11rrh9c2vse2h8d@corp.supernews.com...
On 2006-01-06, Charles Jean <alchemcj@earthlink.net> wrote:

Who's Mark?

[snip]


Space's brother ?:-)

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
Richard Crowley
Posted: Fri Jan 06, 2006 12:59 am
Guest
"Jim Thompson" wrote ...
Quote:
"techie_alison" wrote:
"Grant Edwards" wrote ...
Charles Jean wrote:

Who's Mark?

[snip]

Space's brother ?Smile

ROTFL! Smile)

(But likely lost on the younger crowd.)
Charles Jean
Posted: Fri Jan 06, 2006 7:44 pm
Guest
On Fri, 06 Jan 2006 03:10:09 GMT, David Tweed <dtweed@acm.org> wrote:

Quote:
Charles Jean wrote:
Thanks Mark, for clearing that up. Does this look like the proper way
to send the chip an "A", then, with the mode set at "normal"
TTL(0-5V)? What are the indeterminate voltage limits? Any need for a
delay prior to sending the next character"?

|------<--8 character bits---->--------------
+5V_|___ ___ ___ ______
| |S | | | | | | | | | | |
| |T | | | | |2 STOP
| |A | | | | |BITS
+2.0V-|--|R-|--|--------------|--|--|--------------
| |T | | | | |
| | | | | | |INDETERMINATE
| |B | | | | |VOLTAGE
| |I | | | | |REGION
| |T | | | | |
+0.8V-|--|--|--|--------------|--|--|--------------
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
0V_| |__| |--|--|--|--|--| |__| | |
0 1 0 0 0 0 0 1 0 1 1
LSB MSB

Bit width = 1/9600 seconds = 104.2 microseconds

No delay should be required.

-- Dave Tweed
___


I'm the OP of this thread and would like to thank everyone for such a
voluminous and knowledeable response! For those that wanted to know,
the chip is the SV2000 video interface chip from
http://www.speechchips.com. It inputs serial ASCII data and converts
to an RS170 composite video encoded stream. It is supposed to give a
9 line X 16 character display, with a standard ASCII font as well as
user-defined fonts. Control commands are preceeded by ASCII 27(ESC).
It has been marked down from $20 from $10. I already had a portable
BW TV with a composite video input, so I thought I might try it. By
bit-banging I wouldn't use the precious single UART of my uC, and only
one of its output pins.

As you can see from the data sheet, the connection on pin 6 allows for
either "normal" or "inverted" TTL levels to be used. I think I could
have saved lots of confusion by rephrasing my question to: "What's the
idling voltage of normal and inverted TTL serial lines?" I can write
the program to have the line at pin 3 idle at either 0 or 5 volts, and
I had a 50-50 chance of having pin 6 wired correctly. Just lazy
again. Sorry if I caused any trouble.
Michael A. Terrell
Posted: Sat Jan 07, 2006 1:34 am
Guest
Richard Crowley wrote:
Quote:

"Jim Thompson" wrote ...
"techie_alison" wrote:
"Grant Edwards" wrote ...
Charles Jean wrote:

Who's Mark?

[snip]

Space's brother ?:-)

ROTFL! Smile)

(But likely lost on the younger crowd.)


Yeah, they don't know what they missed by never working on the old AP
& UPI newswire KSR33 teletypes on a leased loop.

--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.

Michael A. Terrell
Central Florida
Don Bowey
Posted: Sat Jan 07, 2006 11:35 am
Guest
On 1/6/06 9:34 PM, in article 43BF5267.24D39FBB@earthlink.net, "Michael A.
Terrell" <mike.terrell@earthlink.net> wrote:

Quote:
Richard Crowley wrote:

"Jim Thompson" wrote ...
"techie_alison" wrote:
"Grant Edwards" wrote ...
Charles Jean wrote:

Who's Mark?

[snip]

Space's brother ?:-)

ROTFL! Smile)

(But likely lost on the younger crowd.)


Yeah, they don't know what they missed by never working on the old AP
& UPI newswire KSR33 teletypes on a leased loop.

Or the models 14, 15 and 19 that were even before your time. They seemed
hi-tech at the time. My first one at home was a 14 with the range crank on
top, front. It came from a Telco Toll office.
Roy L. Fuchs
Posted: Sat Jan 07, 2006 1:06 pm
Guest
On Sat, 07 Jan 2006 07:35:18 -0800, Don Bowey <dbowey@comcast.net>
Gave us:

Quote:
On 1/6/06 9:34 PM, in article 43BF5267.24D39FBB@earthlink.net, "Michael A.
Terrell" <mike.terrell@earthlink.net> wrote:

Richard Crowley wrote:

"Jim Thompson" wrote ...
"techie_alison" wrote:
"Grant Edwards" wrote ...
Charles Jean wrote:

Who's Mark?

[snip]

Space's brother ?:-)

ROTFL! Smile)

(But likely lost on the younger crowd.)


Yeah, they don't know what they missed by never working on the old AP
& UPI newswire KSR33 teletypes on a leased loop.

Or the models 14, 15 and 19 that were even before your time. They seemed
hi-tech at the time. My first one at home was a 14 with the range crank on
top, front. It came from a Telco Toll office.


Well... take a bow.
Michael A. Terrell
Posted: Sat Jan 07, 2006 3:20 pm
Guest
Don Bowey wrote:
Quote:

On 1/6/06 9:34 PM, in article 43BF5267.24D39FBB@earthlink.net, "Michael A.
Terrell" <mike.terrell@earthlink.net> wrote:

Yeah, they don't know what they missed by never working on the old AP
& UPI newswire KSR33 teletypes on a leased loop.

Or the models 14, 15 and 19 that were even before your time. They seemed
hi-tech at the time. My first one at home was a 14 with the range crank on
top, front. It came from a Telco Toll office.


I had a model 15 of my own, (Found at a Dayton hamfest) but I used
the KSR33 a lot more. We had two of them at the military radio & TV
station I worked at in '73 & '74. They replaced our very worn out
Kleinschmidts. Smile Later on I had a Metrodata computer with two 20 mA
boards for AP & UPI news wires at a United Video Cablevision CATV
headend in Cincinatti, Ohio. I was troubleshooting one of the six
channel Metrodata graphics computers when I found a couple undocumented
commands. One that let me interrupt the 20 mA loop. The other let me
type and send messages on a "Read only" system. It wasn't long after
that that the hardwire 20 mA loops were replaced with receive only sat
equipment.

--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.

Michael A. Terrell
Central Florida
Michael A. Terrell
Posted: Sun Jan 08, 2006 5:10 pm
Guest
Richard Crowley wrote:
Quote:

"Chuck Harris" wrote ...
The wire services used 5 bit machines, such as the model 15, 19, and
28.
The model 15 is what all of us old fogies remember as the intro to US
nightly
TV news. They always started and ended with a few seconds of model 15
teletype chatter... Walter Cronkite would fill in the time in between.

We would have been better off with 28:30 of TTY SFX. :-)

I just heard a radio spot the other day with TTY SFX in the
background and the announcer using his best "radio announcer"
voice (a parody on news-flash style). It was interesting that the
sound of the old TTYs is so anacronistic these days.

I was a college freshman running the college radio station
solo when they made the mistake and sent the REAL missle
attack message over the wire (instead of the regular sunday-
morning test tape). That gave us a morning of excitement.



There are two stories I remember coming across the news wire while I
was at work in broadcast stations. the first was about a tower collapse
at a station that killed most of the tower crew, and just missed the
engineer who dived under one of the old RCA broadcast consoles as the
tower came through the roof and landed on the console. The other was
the murders of "String Bean" (and his wife Ramona) who was a comic on
WSM's "Grand Ole Opry". they were robbed and murdered in their front
yard because he was known to carry a lot of cash on him, due to his
mistrust of banks.


--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.

Michael A. Terrell
Central Florida
Rich Grise
Posted: Mon Jan 09, 2006 1:19 pm
Guest
On Sat, 07 Jan 2006 07:35:18 -0800, Don Bowey wrote:

Quote:
On 1/6/06 9:34 PM, in article 43BF5267.24D39FBB@earthlink.net, "Michael A.
Terrell" <mike.terrell@earthlink.net> wrote:

Richard Crowley wrote:

"Jim Thompson" wrote ...
"techie_alison" wrote:
"Grant Edwards" wrote ...
Charles Jean wrote:

Who's Mark?

[snip]

Space's brother ?:-)

ROTFL! Smile)

(But likely lost on the younger crowd.)


Yeah, they don't know what they missed by never working on the old AP
& UPI newswire KSR33 teletypes on a leased loop.

Or the models 14, 15 and 19 that were even before your time. They seemed
hi-tech at the time. My first one at home was a 14 with the range crank on
top, front. It came from a Telco Toll office.

Some guy once gave me what I'm almost sure was a "model 13". It used a 60
mA current loop, and ran at "60 WPM" - that's words per minute, where a
"word" is five characters. So, five characters per second, and five bits
per character, with start and stop bits, that's not very many baud. Back
when I was a young stud with an 8008 and .256 KB of RAM, it wasn't that
hard to make it type stuff. ;-)

Mechanically, it was fascinating. And if you ever get one, don't spray it
with WD-40. On a mechanism like a teletype, WD-40 turns to glue. I spent
about two weeks with a typewriter brush and isopropyl alcohol cleaning
the damn thing up.

But it was kewl, toggling stuff into the ol' Scelbi 8H and having the ol'
model 13 kachunk it out. :-)

Cheers!
Rich
Rich Grise
Posted: Mon Jan 09, 2006 1:26 pm
Guest
On Fri, 06 Jan 2006 23:44:31 +0000, Charles Jean wrote:
....
Quote:
I'm the OP of this thread and would like to thank everyone for such a
voluminous and knowledeable response! For those that wanted to know,
the chip is the SV2000 video interface chip from
http://www.speechchips.com. It inputs serial ASCII data and converts
to an RS170 composite video encoded stream. It is supposed to give a
9 line X 16 character display, with a standard ASCII font as well as
user-defined fonts. Control commands are preceeded by ASCII 27(ESC).
It has been marked down from $20 from $10. I already had a portable
BW TV with a composite video input, so I thought I might try it. By
bit-banging I wouldn't use the precious single UART of my uC, and only
one of its output pins.

As you can see from the data sheet, the connection on pin 6 allows for
either "normal" or "inverted" TTL levels to be used. I think I could
have saved lots of confusion by rephrasing my question to: "What's the
idling voltage of normal and inverted TTL serial lines?" I can write
the program to have the line at pin 3 idle at either 0 or 5 volts, and
I had a 50-50 chance of having pin 6 wired correctly. Just lazy
again. Sorry if I caused any trouble.

Oh, no trouble at all! We like getting into these lively discussions
and thread-drift. ;-P

Anyway, all I was going to say is try it both ways, especially since
you can do it in the micro. Send it some A's and 5's with '0' idle,
and see what shows up, and send it some A's and 5's with '1' idle,
and see what shows up. At least that's how I'd do it. "RS-232" has
always done that to me. :-)

Good Luck!
Rich
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Sat Jul 05, 2008 6:14 pm