Loop Implementation Scheme for Computer Serial Communication

Publisher:WiseThinkerLatest update time:2006-05-07 Source: 电子产品世界 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    For users who require the interface to have long-distance (>1km) high-speed (up to 19200bps) communication capabilities, as well as strong anti-interference and noise suppression capabilities in industrial sites, for ordinary RS232 interfaces, point-to-point single-line common ground connection (Singleended) is used. In the flat drive mode, the maximum communication distance is 15.25m, which obviously cannot meet the requirements. Therefore, consider the 20mA current loop driving method. Compared with the level mode, the current loop has one advantage:

    the level mode 20mA current loop mode

    Signal is easy to attenuate Signal is not easy to attenuate

    Susceptible to interference and strong anti-interference ability

    Long distance, high frequency suitable for long distance

    Low transmission performance and high-speed communication

    In this design, Motorola's optocoupler TIL117 is selected for signal conversion and photoelectric isolation. In this way, data information is transmitted through a closed current loop. The low-resistance transmission communication method of this current loop has a strong ability to suppress interference that enters the communication loop.

    The 20mA current loop interface communication method is shown in Figure 1.

    The circuit consists of the following two parts:

    1.DC-DC converter

    The DC-DC module is used to adjust the +5V DC voltage provided by the device to ±12V DC voltage to provide the driving voltage for the current source.

    2. Signal converter (current loop driver/receiver)

    The circuit of the signal converter is shown in Figure 2.

    The selection of communication protocol is carried out through SW1, see Table 1.

    The transmitter (TD, DTR) and receiver (RD) of this current loop interface board can work in active and passive modes. By selecting DIP switch SW2 on the interface board, you can switch between the two modes. When switching, it must be noted that for both parties in communication, the sending and receiving of the same signal must be active on one side, and only one side can be active.

Table 1 SW1 settings

PROTOCOL SW1
1 2
XON/XOFF ON OFF
DTR OFF ON

Select DIP switch SW2, there are 4 communication methods, see Table 2. SW2 settings are shown in Table 3.

Table 2 SW2 settings

Way Corresponding party 1 Corresponding party 2
RD TD(DTR) RD TD(DTR)
1 Active Active Passive Passive
2 Active Passive Active Passive
3 Passive Active Passive Active
4 Passive Passive Active Active

Table 3 SW2 settings

Way Corresponding party 1 Corresponding party 2
1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10
1 O   O   O O   O   O   O   O     O   O  
2 O   O   O   O   O   O   O   O   O   O  
3   O   O   O   O   O   O   O   O   O   O
4   O   O     O   O   O   O   O O   O   P

    "O" means ON, and a space means OFF.
    This product has been successfully developed and passed debugging at the user's site, and has now entered the mass production stage.

Reference address:Loop Implementation Scheme for Computer Serial Communication

Previous article:Application of TrimediaDSP chip in video communication
Next article:Mobile digital image spread spectrum communication system

Latest Industrial Control Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号