background image

Appendix C Register Structure and Format

PCI-1761 User’s Manual

26

Advantech Co., Ltd.

www.advantech.com

Appendix

 

C

C

C

C

Appendix C  Register Structure and    
Format  

C.1  Overview                                                                             

The PCI-1761 is delivered with an easy-to-use 32-bit DLL driver for user 
programming under the Windows 95/98/NT/2000 operating system. We 
advise users to program the PCI-1761sing the 32-bit DLL driver provided 
by Advantech to avoid the complexity of low-level programming by reg-
ister. 

The most important consideration in programming the PCI-1761 the reg-
ister level is to understand the function of the card's registers. The infor-
mation in the following sections is provided only for users who would 
like to do their own low-level programming.

C.2  I/O Port Address Map                                                        

The PCI-1761 requires 32 consecutive addresses in the PC's I/O space. 
The address of each register is specified as an offset from the card's base 
address. For example, BASE+0 is the card's base address and BASE+7 is 
the base address plus seven bytes.

Table C-1 shows the function of each register of the PCI-1761 or driver 
and its address relative to the card's base address.

 

   

Summary of Contents for PCI-1761

Page 1: ...trademarks of International Business Machines Corporation MS DOS Windows Microsoft Visual C and Visual BASIC are trademarks of Microsoft Corporation Intel and Pentium are trademarks of Intel Corpo ra...

Page 2: ......

Page 3: ...4 Driver Installation 13 2 5 Hardware Installation 15 2 6 Device Setup Configuration 17 Chapter 3 Signal Connections 21 3 1 Overview 21 3 2 Isolated Digital Input Connections 21 3 3 Relay connections...

Page 4: ...Advantech Co Ltd iv PCI 1761 User s Manual www advantech com...

Page 5: ...rther information about features installation guide together with some brief information on software and accessories for the PCI 1761 card 1 1 Features 8 relay output channels and 8 isolated digital i...

Page 6: ...return to its default configuration as open status depending on its on board jumper setting This function protects the system from wrong operations during unexpected system resets Plug and Play Funct...

Page 7: ...software Advantech DLL drivers included in the companion CD ROM Wiring cable PCL 10137 optional Wiring board PCLD 880 ADAM 3937 optional Computer Personal computer or workstation with a PCI bus slot...

Page 8: ...dvantech com Fig 1 1 Installation Flow Chart Use driver utility to configure hardware Install Hardware and Turn on PC Power Install Driver from CD ROM then power off PC Use test utility to test hardwa...

Page 9: ...ded on the companion CD ROM at no extra charge It also comes with all the Advantech DA C cards Advantech s DLL driver features a complete I O function library to help boost your application performanc...

Page 10: ...ers a Tutorial Chapter in the DLL Drivers Man ual for your reference Please refer to the corresponding sections in this chapter on the DLL Drivers Manual to begin your programming efforts You can also...

Page 11: ...Port Function Group direct I O Event Function Group For the usage and parameters of each function please refer to the Func tion Overview chapter in the DLL Drivers Manual Troubleshooting DLL Driver Er...

Page 12: ...uch a way as to form a twisted pair cable reducing cross talk and noise from other signal sources Furthermore its analog and digital lines are separately sheathed and shielded to neutral ize EMI EMC p...

Page 13: ...electronic components vulnerable to electrostatic discharge ESD ESD could easily damage the integrated circuits and certain components if preventive measures are not carefully paid attention to Before...

Page 14: ...id installing a damaged card into your system Also pay extra caution to the following aspects to ensure proper instal lation a Avoid physical contact with materials that could hold static electric ity...

Page 15: ...t the capability of clearing each relay output when the system or PC issues a reset signal on the PCI bus Some users will want to clear their relays only as part of system power on The PCI 1761 satisf...

Page 16: ...put A R0_NC 3 22 R3_NC IDInB n 0 7 R1_NO 4 23 R4_NO Isolated digital input B R1_COM 5 24 R4_COM Rn_NO n 0 7 R1_NC 6 25 R5_NO Normally Open pin of relay output R2_NO 7 26 R5_COM Rn_NC n 0 7 R2_COM 8 27...

Page 17: ...ed with your DA C card pack age Please follow the steps below to install the driver software Step 1 Insert the companion CD ROM into your CD ROM drive Step 2 The Setup program will be launched automat...

Page 18: ...option according to your operating system Just follow the instal lation instructions step by step to complete your DLL driver setup Fig 2 4 Different options for Driver Setup For further information o...

Page 19: ...rface of your computer to neutral ize the static electricity that might be on your body Step 5 Insert the 1761 card into a PCI slot Hold the card only by its edges and carefully align it with the slot...

Page 20: ...on the Device Man ager tab on the System Property Page Fig 2 5 The device name listed on the Device Manager Note If your card is properly installed you should see the device name of your card listed o...

Page 21: ...ugh the Setup Configuration and Testing of your device 2 6 Device Setup Configuration The Device Installation program is a utility that allows you to set up con figure and test your device and later s...

Page 22: ...Since you haven t installed any device yet you might see a blank list such as the one in Fig 2 6 Fig 2 7 The I O Device Installation dialog box Step 3 Scroll down the List of Devices box to find the d...

Page 23: ...vice Setting dialog box Fig 2 9 you can configure the ID0 ID7 Interrupt trigger mode either as Rising Edge or Falling Edge and Enable or Disable the ID0 ID7 Fig 2 9 The Device Setting dialog box Step...

Page 24: ...which is specifically assigned to each card The device number is passed to the driver to specify which device you wish to control After your card is properly installed and configured you can click the...

Page 25: ...s chapter provides useful information about how to connect input and output signals to the PCI 1761 via the I O connector 3 2 Isolated Digital Input Connections The PCI 1761 has 8 isolated digital inp...

Page 26: ...the output status of each relay For example if Bit 0 of BASE 0 is set 1 logic high relay 0 K0 will switch from position NORMALLY CLOSED R0_NC to position NORMALLY OPEN R0_NO This means that LOAD2 wil...

Page 27: ...ypical 12 VDC 1 9 mA typical 24 VDC 4 1 mA typical 48 VDC 8 5 mA typical 50 VDC 8 9 mA typical Number of Output Channel 8 Relay Type SPDT 4 Form C and 4 Form A Rating resistive 3 A 250 VAC or 3 A 24 V...

Page 28: ...please refer to CD ROM Document PCI 1761_Relay_Spec pdf Table A 3 General Specs I O Connector Type 37 pin D type female Dimensions 175 mm x 100 mm 6 9 x 3 9 Power Consumption 5V 220 mA typical 5V 750...

Page 29: ...Advantech Co Ltd 25 PCI 1761 User s Manual www advantech com Appendix B B B B Appendix B Block diagram Fig B 1 System block diagram...

Page 30: ...r The most important consideration in programming the PCI 1761 the reg ister level is to understand the function of the card s registers The infor mation in the following sections is provided only for...

Page 31: ...BD2 BD1 BD0 W N A 3H R Interrupt Enable Status IDI7EN IDI6EN IDI5EN IDI4EN IDI3EN IDI2EN IDI1EN IDI0EN W Interrupt Enable Register IDI7EN IDI6EN IDI5EN IDI4EN IDI3EN IDI2EN IDI1EN IDI0EN 4H R Interrup...

Page 32: ...H Table C 2 Register for relay output status Table C 3 Register for relay output Note The default configuration of the digital output channels is a logic 0 This avoids damaging external devices during...

Page 33: ...l input C 5 Board ID BASE 2H The PCI 1761 offers Board ID register BASE 2H With correct Board ID settings user can easily identify and access each card during hardware configuration and software progr...

Page 34: ...he interrupt 0 No interrupt 1 Interrupt occurred IDInRF Interrupt enable control bits n 0 7 Read this bit to Enable Disable the interrupt 0 Disable 1 Enable IDInEN Interrupt triggering control bits n...

Page 35: ...service the next inter rupt 0 Don t care 1 Clear the interrupt IDInRF Interrupt enable control bits n 0 7 Read this bit to Enable Disable the interrupt 0 Disable 1 Enable IDInEN Interrupt triggering c...

Reviews: