1 Mayıs 2010 Cumartesi

RS-232 Information and Troubleshooting Tips




RS-232 Information and Troubleshooting Tips


The following is information related to RS-232 communication and connections, mainly involving the connection of RS-232 devices to the serial ports of IBM PC compatible computers.

IBM PC Compatible Serial Port Pinouts


signal     flow     pin     pin
on PC              (DB9M)  (DB25M)

DCD in     <---      1       8
receive    <---      2       3
transmit   --->      3       2
DTR out    --->      4       20    asserted when port is opened
ground               5       7
DSR in     <---      6       6
RTS out    --->      7       4     asserted if hardware handshake
CTS in     <---      8       5     must be held asserted to send if hardware handshake
RI in      <---      9       22


Looping back Control Signals

Many RS-232 devices that connect to a PC will work with only transmit, receive, and ground connections. If they do not, this may mean that they require that some or all of the control signals be connected and working. This will probably require using a cable with all of the wires present. Another way to simulate these signals to the PC is to loop back the PC's own signals as shown below.loopback connections

Monitoring RS-232 Communication

There are times when there is just no substitute for seeing exactly what two devices are sending to each other when they are failing to communicate properly or are not working as they should be. Shown below is a device that will allow you to "eavesdrop" on an RS-232 communication with a dumb terminal or IBM PC compatible computer running a communication program.The switch allows the monitor PC to select which side of the "conversation" it is receiving and displaying.
The device shown uses 9 pin "D" connectors and is made for one monitor PC, but the following modifications can be made for your particular situation:
  • It can be made as a box or a cable
  • It can be made with two connectors for two monitor PC's
  • The switches can be eliminated if there are two connectors and monitor PC's with one monitoring pin 2 of the devices and one monitoring pin 3
  • The gender of the connectors can be customized for the PC's you have
  • The connectors for the devices being monitored can be 25 pin connectors
  • Both 9 pin and 25 pin connectors can be used/added

RS-232 Eavesdrop Device

Hiç yorum yok:

Yorum Gönder

İzleyiciler

LED DİRENÇ HESAPLAMA

All LEDs require current limiting, without a current limiting mechanism the LED will usually burn out in under a second. Adding a simple resistor is the easiest way to limit the current. Use the calculator below to find out the value of resistor you require.

For example if you are wanting to power one of our_blank">red LEDs in an automotive application you would see that the typical forward voltage is 2.0 Volts and the maximum continuous forward current is 30mA. Therefore you would enter 14.5, 2.0 and 30 into the Single LED calculation box. After calculating you get 470ohm 1 watt as the result. Here is a that allows you to enter a resistor value and generate the corresponding color code.

Note: For automotive applications use the actual system voltage, not 12 Volts. Most 12 Volt system actually operate at around 14.5 Volts.

Supply Voltage
VOLTS
Voltage Drop Across LED
VOLTS
Desired LED Current
MILLIAMPS



Calculated Limiting Resistor
OHMS
Nearest higher rated 10% resistor

Calculated Resistor Wattage
WATTS
Safe pick is a resistor with
power rating of (common values are .25W, .5W, and 1W)
WATTS

LEDs in series

Several leds in series with one resistor
Supply Voltage
VOLTS
Voltage Drop Across LED
VOLTS
Desired LED Current
MILLIAMPS
How many LEDs connected




Calculated Limiting Resistor
OHMS
Nearest higher rated 10% resistor

Calculated Resistor Wattage
WATTS
Safe pick is a resistor with
power rating of (common values are .25W, .5W, and 1W)
WATTS
LM317 UYGULAMA DEVRELERİ HESAPLAMASI

 




Çıkış Voltajı
R1 resistor

R2 resistor

R1 resistor
R2 resistor

Çıkış Voltajı


Lm317 uygulama devreleri ve detayli bilgiye Buradan ulasabilirsiniz

LM555 - ASTABLE OSCILLATOR CALCULATOR

LM555 - ASTABLE OSCILLATOR CALCULATOR
Value Of R1 Ohms Value Of R2 Ohms
Value Of C1 Microfarads
Output Time HIGH SECONDS Output Time LOW SECONDS Output Period HIGH + LOW SECONDS Output Frequency HERTZ Output Duty Cycle PERCENT
Resistor values are in Ohms (1K = 1000) - Capacitor values are in Microfarads (1uF = 1)

NOTE: The leakage currents of electrolytic capacitors will affect the actual output results of the timers. To compensate for leakage it is often better to use a higher value capacitor and lower value resistances in the timer circuits.

LM555 Astable Oscillator Circuit Diagram


LM555 - ASTABLE CAPACITOR CALCULATOR

The next calculator can find the capacitance needed for a particular output frequency if the values of R1 and R2 are known.

Value Of R1 Ohms Value Of R2 Ohms
Frequency Desired Hertz
Capacitance uF
s

VOLT AMPER OHM ve WATT HESAPLAMA

Current:
kA (kiloamps) A (amps) mA (milliamps) µA (microamps)
Voltage:
kV (kilovolts) V (volts) mV (millivolts) µV (microvolts)