background image

Interrupts

 

Please note that, in WindowsNT, changes must be made to the system registry to support IRQ sharing. 
The following is excerpted from "Controlling Multiport Serial I/O Cards" provided by Microsoft in the 
MSDN library, documentid:mk:@ivt:nt40res/D15/S55FC.HTM, also available in the WindowsNT 
Resource Kit.  
  
The Microsoft serial driver can be used to control many dumb multiport serial cards. Dumb indicates 
that the control includes no on-board processor. Each port of a multiport card has a separate subkey 
under the HKLM\CurrentControlSet\Services\Serial subkey in the registry. In each of these subkeys, 
you must add values for 

DosDevices, Interrupt, InterruptStatus, PortAddress, 

and

 PortIndex

 

because these are not detected by the Hardware Recognizer. (For descriptions and ranges for these 
values, see Regentry.hlp, the Registry help file on the WindowsNT Workstation Resource Kit CD.) 
  
For example, if you have a four-port card configured to use address 0xFFF0 with an interrupt of 05, the 
values in the Registry are: [assuming that every port is configured to use the same IRQ and that the 
addresses are configured to be consecutive and contiguous] 

  
 

Serial2 Subkey: 

Serial4 Subkey:

 

 

PortAddress = REG_DWORD 0xFFF0 

PortAddress = REG_DWORD 0xFF90 

 

Interrupt = REG_WORD 5 

Interrupt = REG_DWORD 5 

 

DosDevices = REG_SZ COM3 

DosDevices = REG_SZ COM5 

 

InterruptStatus = REG_DWORD 0xFFF8 

InterruptStatus = REG_DWORD 0xFFF8 

 

PortIndex = REG_DWORD 1 

PortIndex = REG_DWORD 3 

  
 

Serial3 Subkey: 

Serial5 Subkey:

 

 

PortAddress = REG_DWORD 0xFFE0 

PortAddress = REG_DWORD 0xFF80 

 

Interrupt = REG_DWORD 5 

Interrupt = REG_DWORD 5 

 

DosDevices = REG_SZ COM4 

Dos Devices = REG_SZ COM6 

 

InterruptStatus = REG_DWORD 0xFFF8 

InterruptStatus = REG_DWORD 0xFFF8 

 

PortIndex = REG_DWORD 2 

PortIndex = REG_DWORD 4 

  
As this example shows, the Interrupt Status Register, which indicates which port (s) caused an IRQ, is located 
at COM A Base A8.  

Содержание PCI-COM485/4

Страница 1: ...ess underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals Demos In stock Ready to ship TAR certified secure asset solutions Expert team I Trust guarantee I 100 satisfaction All trademarks brand names and brands appearing herein are the property of their respecti...

Страница 2: ...10623 Roselle Street San Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com MODEL PCI COM485 4 USER MANUAL FILE PCI COM485 4 Gb ...

Страница 3: ...rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 2000 2005 by ACCES I O Products Inc 10623 Roselle Street San Diego CA 92121 All rights reserved WARNING ALWAYS CONNECT AND DISCONNECT YOUR FIELD CABLING WITH THE COMPUTER POWER OFF ALWAYS TURN COMPUTER POWER OFF BEFORE INSTALLING A CARD CONNECTING AND DISCON...

Страница 4: ... excluded 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 to those of other manufacturers in the industry Equipment Not Manufactured by ACCES Equipment provided but not manufactured by ACCES is warranted and will be repaired according to the terms and co...

Страница 5: ...lified Termination Schematic 10 Figure 3 2 Option Selection Map 12 Chapter 4 Address Selection 13 Chapter 5 Programming 14 Chapter 6 Connector Pin Assignments 18 Table 6 1 Connector Pin Assignments 18 Appendix A Application Considerations 19 Table A 1 Connections Between Two RS422 Devices 19 Table A 2 RS422 Specification Summary 20 Figure A 1 Typical RS485 Two Wire Multidrop Network 21 ...

Страница 6: ...off Also receiver inputs at each end of the network should be terminated to eliminate ringing The card supports biasing by default and supports termination by jumpers on the card If your application requires the transmitter to be un biased please contact the factory COM Port Compatibility Type 16550 UARTs are used as the Asynchronous Communication Element ACE These have a 16 byte transmit receive ...

Страница 7: ...sub connectors Serial Ports Four shielded male D sub 9 pin IBM AT style connectors compatible with RS485 specifications Note On model S01 an external spider or breakout cable terminates with four female D sub 9 pin connectors Character length 5 6 7 or 8 bits Parity Even odd or none Stop Interval 1 1 5 or 2 bits Serial Data Rates Up to 115 200 baud Asynchronous A faster range of rates up to 460 800...

Страница 8: ...Figure 1 1 Block Diagram Only one serial channel shown ...

Страница 9: ...oftware Installation The following instructions assume the CD ROM drive is drive D Please substitute the appropriate drive letter for your system as necessary DOS 1 Place the CD into your CD ROM drive 2 Type B to change the active drive to the CD ROM drive 3 Type GLQR JJ to run the install program 4 Follow the on screen prompts to install the software for this board WINDOWS 1 Place the CD into you...

Страница 10: ...ce the computer cover and turn ON the computer Enter the CMOS setup program of your system and verify that the PCI plug and play option is set appropriately for your system Systems running Windows 95 98 2000 XP 2003 or any other PNP compliant operating system should set the CMOS option to OS Systems running under DOS Windows NT Windows 3 1 or any other non PNP compliant operating system should set...

Страница 11: ...inals only the RS485 ports at each end of the network should have terminating impedance as described above To so terminate the COM A port place a jumper at the location labeled LDAO To terminate the COM B COM C and COM D ports place jumpers at locations labeled LDBO LDCO and LDDO respectively Also for RS485 operation there must be a bias on the RX and RX lines If the card is not to provide that bi...

Страница 12: ...y help file on the WindowsNT Workstation Resource Kit CD For example if you have a four port card configured to use address 0xFFF0 with an interrupt of 05 the values in the Registry are assuming that every port is configured to use the same IRQ and that the addresses are configured to be consecutive and contiguous Serial2 Subkey Serial4 Subkey PortAddress REG_DWORD 0xFFF0 PortAddress REG_DWORD 0xF...

Страница 13: ...Figure 3 2 Option Selection Map ...

Страница 14: ... bus the addresses assigned to each function on each of the cards and the respective IRQs if any allotted Alternatively some operating systems Windows 95 98 2000 can be queried to determine which resources were assigned In these operating systems you can use either PCIFind DOS PCINT Windows95 98 NT or the Device Manager utility from the System Properties Applet of the control panel The card is ins...

Страница 15: ...g The card installs into Windows as COM ports Thus the Windows standard API functions can be used In particular CreateFile and CloseHandle for opening and closing a port SetupComm SetCommTimeouts GetCommState and SetCommState to set 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 diffe...

Страница 16: ... Note that there are two columns to consider depending on the position of the BAUD jumper Baud Rate Divisor x1 Divisor x4 Max Diff Cable Length 460800 1 550 ft 230400 2 1400 ft 153600 3 2500 ft 115200 1 4 3000 ft 57600 2 8 4000 ft 38400 3 12 4000 ft 28800 4 16 4000 ft 19200 6 24 4000 ft 14400 8 32 4000 ft 9600 12 48 Most Common 4000 ft 4800 24 96 4000 ft 2400 48 192 4000 ft 1200 96 384 4000 ft Rec...

Страница 17: ... inportb BASEADDR 5 1 Wait until data ready data i inportb BASEADDR while data i 13 Reads the line until null character rec d Interrupt driven communications should be used whenever possible and is required for high data rates Writing an interrupt driven receiver is not much more complex than writing a polled receiver but care should be taken when installing or removing your interrupt handler to a...

Страница 18: ...demonstrates this process outportb BASEADDR 4 inportb BASEADDR 4 0x02 Set RTS bit without altering states of other bits while data i While there is data to send while inportb BASEADDR 5 0x20 Wait until transmitter is empty outportb BASEADDR data i i outportb BASEADDR 4 inportb BASEADDR 4 0xFD Reset RTS bit without altering states of other bits ...

Страница 19: ...ure connector is used for interfacing to communication lines The connector is equipped with 4 40 threaded standoffs female screw lock to provide strain relief Pin No RS485 Functions 1 2 Tx and Rx 3 Tx and Rx 4 5 GND Ground 6 7 8 9 Table 6 1 Connector Pin Assignments ...

Страница 20: ... it operates in the differential mode it is more immune to induced noise Connections between two RS422 devices with CTS ignored should be as follows Device 1 Device 2 Signal Pin No Signal Pin No Gnd 7 Gnd 7 TX 24 RX 12 TX 25 RX 13 RX 12 TX 24 RX 13 TX 25 Table A 1 Connections Between Two RS422 Devices A third deficiency of RS232 is that more than two devices cannot share the same cable This is als...

Страница 21: ...tenuation that can occur on long transmission cables A maximum common mode voltage rating of 7V provides good noise immunity from voltages induced on the twisted pair lines The signal ground line connection is necessary in order to keep the common mode voltage within that range The circuit may operate without the ground connection but might not be reliable Parameter Conditions Min Max Driver Outpu...

Страница 22: ...ustration 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 line Figure A 1 Typical RS485 Two Wire Multidrop Network RS485 Four Wire Multidrop Network An RS485 network can also be connected in a four wire mode In a four wire network it s necessary that one node be a master node and all ...

Страница 23: ...ust want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623 Roselle Street San Diego CA 92121 Tel 858 550 9559 FAX 858 550 7322 www accesio com ...

Страница 24: ...quipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentation Artisan Scientific Corporation dba Artisan Technology Group is not an affiliate representative or authorized distributor for any manufacturer listed herein We re here to make your life easier How...

Отзывы: