background image

ICOM-2S Manual

5-4

Manual MICOM-2S.Eb

Transmission

RS485 transmission is simple to implement.  The AUTO feature automatically enables the transmitter
when data is ready to send so no software enabling procedure is needed.  
The following software example is for non-AUTO operation.  First the RTS line should be set high
by writing a 1 to Bit 1 of the Modem Control Register at Base A4.  The RTS line is used to
toggle the transceiver from receive mode to transmit mode and vice versa.  It is not carried out on the
line in RS485 and is not used for handshaking.  Similarly, the CTS line is not used in RS485 and
should always be enabled by installing a jumper as described earlier.

After the above 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 A5.  That bit is the
transmitter-holding-register-empty flag.  If it is high, the transmitter has sent  the data.  The process
of checking the bit until it goes high, followed by a write is repeated until no data remains.  After all
data has been transmitted, the RTS bit should be reset by writing a 0 to Bit 1 of the Modem Control
Register.

The following C code fragment demonstrates this process:

outportb(BA4, inportb(BA4)|0x02) ; 
  /*Set RTS bit without altering states of other bits*/
while(data[i]); /*While there is data to send*/
{ /*Wait until transmitter is empty*/
  while(!(inportb(BA5)&0x20)); /*Wait until transmitter is empty*/ 
  outportb(BASEADDR,data[i]);
  i++;
}
outportb(BA4, inportb(BA4)&0xFD);
/*Reset RTS bit without altering states of other bits*/

Содержание 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...

Отзывы: