background image

ICOM-2S Manual

5-2

Manual MICOM-2S.Eb

On the ICOM-2S card, the clock frequency to the UART is 1.843 MHz.  Below is a table for the
popular divisor frequencies:

Baud Rate

  Divisor

Notes

Approx Max  Cable

length *

115200

1

2200 ft

57600

2

High-speed opto-couplers required

4000 ft

38400

3

Maximum speed for standard opto-couplers

4000 ft

28800

4

4000 ft

19200

6

4000 ft

14400

8

4000 ft

9600

12

4000 ft

4800

24

4000 ft

2400

48

4000 ft

1200

96

4000 ft

*These are theoretical maximums based on typical conditions and good quality cables. 

Table 5-1:

  Baud Rate Divisors

In C, the code to set the chip to 9600 baud is:

outportb(BASEADDR, 0x0C);
outportb(BA1,0);

The second initializing step is to set the Line Control Register at Base A3.  This register
defines word length, stop bits, parity, and the DLAB.

Bits  0  and  1  control  word  length  and  allow  word  lengths  from 5 to 8 bits.  Bit settings are
extracted by subtracting 5 from the desired word length.

Bit 2 determines the number of stop bits.  There can be either one or two stop bits.  If Bit 2 is set
to 0, there will be one stop bit.  If Bit 2 is set to 1, there will be two stop bits.

Bits  3  through  6 control parity and break enable.  They are not commonly used for
communications and should be set to zeroes.

Bit 7 is the DLAB discussed earlier.  It must be set to zero after the divisor is loaded or else there
will be no communications.

Содержание ICOM-2S

Страница 1: ...ACCES I O PRODUCTS INC 10623 Roselle Street San Diego CA 92121 TEL 858 550 9559 FAX 858 550 7322 MODEL ICOM 2S USER MANUAL FILE MICOM 2S Eb...

Страница 2: ......

Страница 3: ...document may contain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of ACCES nor the rights of others IBM PC PC XT an...

Страница 4: ...luded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable rates similar...

Страница 5: ...2 1 3 5 Inch Diskette Installation 2 1 Directories Created on the Hard Disk 2 2 Installing the Card 2 4 Chapter 3 Option Selection 3 1 Communication Modes and Cabling Options 3 2 Interrupts 3 2 Chapte...

Страница 6: ...twork A 3 List of Tables Table 4 1 Standard Address Assignments for 286 386 486 Computers 4 1 Table 4 2 ICOM 2S Address Switch Setup 4 2 Table 4 3 Example Address Setup 4 2 Table 4 4 Standard COM Port...

Страница 7: ...e front of this manual The output transceiver used type 75176B is capable of driving extremely long communication lines at high baud rates It can drive up to 60mA on balanced lines and receive inputs...

Страница 8: ...Led Monitors Two LED indicators are provided on the ICOM 2S card The LEDs blink to indicate activity on the transmitting and receiving lines and are useful for problem diagnosis The blinking is more v...

Страница 9: ...t Compatible with RS422 and RS485 specifications Up to 32 drivers and receivers allowed on line Input Isolation 500 Volts from computer and between ports Receiver Input Sensitivity 200 mV differential...

Страница 10: ...ICOM 2S Manual 1 4 Manual MICOM 2S Eb Figure 1 1 ICOM 2S Block Diagram Only one serial channel shown...

Страница 11: ...een prompts to install the software for this card WIN95 98 NT 1 Place the CD into your CD ROM drive 2 The CD should automatically run the install program after 30 seconds If the install program does n...

Страница 12: ...contains C samples Win32 language Subdirectories containing samples for Win95 98 and NT WinRisc exe A Windows dumb terminal type communication program designed for RS422 485 operation Used primarily...

Страница 13: ...rams in DOS PCIFind exe A utility for DOS and Windows to determine what base addresses and IRQs are allocated to installed PCI cards This program runs two versions depending on the operating system Wi...

Страница 14: ...esigned for RS422 485 operation Used primarily with Remote Data Acquisition Pods and our RS422 485 serial communication product line Can be used to say hello to an installed modem RISCTerm stands for...

Страница 15: ...mounting bracket is properly screwed into place and that there is a positive chassis ground 9 Turn the computer ON and observe the LED indicators The LEDs will blink when there is any activity on the...

Страница 16: ...ng resistor should be divided and its center point grounded to help reduce noise voltage pickup To accomplish this also install a jumper at the position marked LD GND for 68 ohm termination resistance...

Страница 17: ...on the wire connections used to connect the two serial ports Tx is the transmit wires and Rx is the receive wires Communication Modes and Cabling Options Cable Mode Jumpers Card A Card B Simplex 2 wir...

Страница 18: ...X Full Half Duplex SX DX Simplex Duplex RTS Software RTS option AUTOA AUTOB Auto RTS option BIAS RS485 Bias Voltage CTS Forced CTS signal LD LDGND Transmission Load Jumpers See the Option Selection ch...

Страница 19: ...01F DMA Controller 1 020 03F INT Controller 1 Master 040 05F Timer 060 06F 8042 Keyboard 070 07F Real Time Clock NMI Mask 080 09F DMA Page Register 0A0 0BF INT Controller 2 0C0 0DF DMA Controller 2 0...

Страница 20: ...itches that are turned OFF and a binary 0 to switches in the ON position For example as illustrated in the following table switch selection corresponds to binary 10 1101 1xxx hex 2D8 The xxx represent...

Страница 21: ...tch Settings A9 A8 A7 A6 A5 A4 A3 COM1 IRQ 4 3F8 1 1 1 1 1 1 1 COM2 IRQ 3 2F8 1 0 1 1 1 1 1 COM3 IRQ 4 3E8 1 1 1 1 1 0 1 COM4 IRQ 3 2E8 1 0 1 1 1 0 1 Table 4 4 Standard COM Port Addresses Notice that...

Страница 22: ...ICOM 2S Manual 4 4 Manual MICOM 2S Eb...

Страница 23: ...et and change a port s settings ReadFile and WriteFile for accessing a port See the documentation for your chosen language for details Under DOS the process is very different The remainder of this cha...

Страница 24: ...to 9600 baud is outportb BASEADDR 0x0C outportb BASEADDR 1 0 The second initializing step is to set the Line Control Register at Base Address 3 This register defines word length stop bits parity and t...

Страница 25: ...e read from the chip Polling is not effective at high data rates above because the program cannot do anything else when it is polling or data could be missed The following code fragment implements a p...

Страница 26: ...e is done the card is ready to send data To transmit a string of data the transmitter must first check Bit 5 of the Line Status Register at Base Address 5 That bit is the transmitter holding register...

Страница 27: ...Output 3 Tx Transmit Data Complementary 4 Not Used 5 Gnd Isolated Common Ground Ground 6 5V Isolated 5V Supply 7 RTS Request to Send Output 8 CTS Clear to Send Input 9 Rx Receive Data Input TRx Table...

Страница 28: ...This is also true for RS422 but RS485 offers all the benefits of RS422 plus allows up to 32 devices to share the same twisted pairs An exception to the foregoing is that multiple RS422 devices can sha...

Страница 29: ...put Voltage loaded LD and LDGND 2V jumpers in 2V Driver Output Resistance 50 Driver Output Short Circuit Current 150 mA Driver Output Rise Time 10 unit interval Receiver Sensitivity 200 mV Receiver Co...

Страница 30: ...p Network The following illustration shows a typical multidrop or party line network Note that the transmission line is terminated on both ends of the line but not at drop points in the middle of the...

Страница 31: ...ICOM 2S Manual A 4 Manual MICOM 2S Eb...

Страница 32: ...ccesioproducts com Customer Comments If you experience any problems with this manual or just want to give us some feedback please email us at manuals accesioproducts com Please detail any errors you f...

Отзывы: