Professional Documents
Culture Documents
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
Here is a diagram of the internals of the MAX232A. It shows a double charge pump voltage
doubler and a +10v to -10v voltage inverter. The voltages output are used to generate the RS232 compliant signals. The MAX232A has provisions for two serial ports on the same
physical package. Most people only connect one of them. You can get a data sheet for the
MAX232 and friends from Maxim. Try downloading MAX232-MAX233 Data Sheets in PDF
format which is a fairly large file (1.2 meg), but has lots of information in it.
MAX232 internals
MAX232 in a Shell
There are two camps on how to implement serial ports on a robot. One says stick the
MAX232 on the robot. The other says don't. I kind of like the don't category! Most of my
robots are autonomous, so I don't really need the MAX232 onboard consuming power. Since
it isn't onboard, it needs to be on its own board. Turns out that a MAX232A fits quite nicely
inside a DB-25 connector shell. The unit is powered by +5 and GND being supplied by the
connection to the microcontroller. This powers the MAX232A.
The MAX232 comes in several varieties. I am using the MAX232A (actually MAX232ACPE
is the full part) because it requires only .1uF capacitors. The original MAX232 required 4.7
and 10uF capacitors, which are bigger and cost more.
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
The photo below shows my stab at putting a MAX232, its capacitors, and the wire inside a
standard DB-25 connector shell . I will add a parts list near the end of this article. This is a
simple circuit to wire up, but I did play a couple of easy tricks. First was that the capacitors
and the MAX232 share perfboard holes. I did this by pushing a screwdriver firmly against the
IC pins at the point where they go through the perfboard. That should give just enough room
to press the leads of the capacitors through the holes. This saved space and also made
soldering these connections really easy. The other trick involves the cable clamp on the wire
exiting the shell. The 4 conductor wire wasn't large enough to be held securely by the cable
clamp. So, I took a rubber band and wrapped it multiple times around the cable, which
enlarged it quite a bit. It now has a nice firm hold on the cable.
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
Microcontrollers serial port (often called a SCI, COM, or ASYNC port) often do not generate
the proper voltages required for connecting to computer RS-232 serial port. In this case
special converter needed. Most microcontrollers run on a single supply voltage, that is usually
+5 volts. In rough terms, logical 1 on these devices indicates that +5 is the voltage on the
output pin. Logical 0 specifies that 0 volts is on the line.
The RS-232-C standard specifies that the voltage on the wire for sending a logical 0 are from
+5v to +15v. The voltage for sending a 1 are from -5v to -15v. Most microcontrollers not
capable of generating these voltages. So, to connect a microcontroller serial port to a true RS232 device, you need to convert the TTL voltages of 0 and +5 into voltages between about
-10 volts and +10 volts.
MAX232 is the chip that makes this work for you. It runs on a single chip supply (+5 volts),
contains double charge pump voltage doubler and a +10v to -10v voltage inverter and
requires a few external capacitors. There are some versions of this chip. The voltages output
are used to generate the RS-232 compliant signals of two serial ports on the same physical
package.
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
that may be on different electrical busses, this may not be true. We have
seen some spectacular electrical events causes by "uncommon grounds".
Secondly, a signal on a single line is impossible to screen effectively for noise.
-- By screening the entire cable one can reduce the influence of outside noise,
but internally generated noise remains a problem.
-- As the baud rate and line length increase, the effect of capacitance between the cables
introduces serious crosstalk until a point is reached where the data itself is unreadable.
TTL to RS 232C conversion
USART (8251) is not directly compatible with RS-232 signal levels.
The TTL to RS232 Serial Adapter is used to connect TTL (Transistor-Transistor Logic) level
signals to an RS-232 interface.
The TTL side is a 9-pin female connector, and the RS-232 side is a 9-pin male connector.
The TTL side has a voltage suppression network designed to protect against ESD (Electro Static
Discharge) and EFT (Electrical Fast Transient).
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
Comparison to USB
Firewire (which started development in 1986) had implementations predating USB.
However USB reached industry standardization (1994) before the IEEE- 1394-1995
specification was released (1995).
At this time USB 1.0 had a signaling speed of 12 and 1.5 Mbit/s (compared to 400 Mbit/s of
IEEE-1394a (FireWire 400)) butch ea per implementations. USB 2.0 with (480 Mbit/s) signal
rate was made available in computers early 2001.
FireWire 800 is substantially faster than Hi-Speed USB, both in theory and in practice.
Alternative uses for IEEE 1394
1. Aircraft
2. Automobiles
USB-Universal Serial Bus
USB is intended to replace many varieties of serial and parallel ports.
USB can connect computer peripherals such as
mice, keyboards, PDAs, gamepads, joysticks, scanners, digital cameras, printers
personal media players, flash drives, external hard drives.
As of 2008, there are about 2 billion USB devices sold per year, and about 6 billion total sold
to date.
The design of USB is standardized by the USB Implementers Forum (USB-IF), an industry
standards body incorporating leading companies from the computer and electronics industries.
Year created: January 1996
Created by: Intel, Compaq, Microsoft, Digital Equipment Corporation, IBM, Northern
Telecom USB communication takes the form of packets.
The original USB 1.0 specification had a data transfer rate of 12 Mbit/s.
The USB 2.0 specification was released in April 2000 and was standardized by the USB-IF at
the end of 2001. Data transfer rate of 480 Mbit/s
The USB 3.0 specification was released on November12, 2008 by the USB 3.0 Promoter
Group. It's maximum transfer rate is up to 10 times faster than the USB 2.0 release. It
has been dubbed the Super USB.
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
RS 232 Material
A USB system has an asymmetric design, consisting of a host, a multitude of downstream USB
ports, and multiple peripheral devices connected in a tiered-star topology.
Additional USB hubs may be included in the tiers, allowing branching into a tree structure
with up to five tier levels.
A USB host may have multiple host controllers and each host controller may provide one or
more USB ports.
Up to 127 devices, including the hub devices, may be connected to a single host controller.
USB devices are linked in series throughhubs. A physical USB device may consist of several
logical sub-devices that are referred to asdevice functions.
A single device may provide several functions, for example, a webcam (video device function)
with a built-in microphone (audio device function). Such a device is called a compound
device in which each logical device is assigned a distinctive address by the host and all
logical devices are connected to a built-in hub to which the physical USB wire is connected.
USB device communication is based onpipes (logical channels).
Pipes are connections from the host controller to a logical entity on the device named an
endpoint.
USB endpoints actually reside on the connected device: the channels to the host are referred
to as pipes USB mass-storage
USB implements connections to storage devices using a set of standards called the USB
mass storage device class (referred to as MSC or UMS).
This was initially intended for traditional magnetic and optical drives, but has been extended to
support a wide variety of devices, particularly flash drives.
This generality is because many systems can be controlled with the familiar idiom of file
manipulation within directories (the process of making a novel device look like a familiar
device is also known as extension).
Though most newer computers are capable of booting off USB mass storage devices.
USB interface port: the drive appears to the user much like an internal drive
RS 232 Material
RS 232 Material
RS 232 Material