background image

39

Appendix C  

C.7  Interrupt Of Port Identify Register

Base+0x40: Interrupt Port Identify Register. 

Bit0~Bit7 (Read): Identify in which port an interrupt occurs from Digital 
Input port 0 to Digital Input port 7.
1: means an interrupt occurs in this port.
0: means no interrupt occurs in this port.

There are two registers which control the digital filter function and status 
of each channel: 

Digital Filter Enable Register

 and 

Filter Interval 

Time Preset Register

.

Base+0x40(Read)

Bit 

15

Bit 

14

Bit 

13

Bit 

12

Bit 

11

Bit 

10

Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

--

--

--

--

--

--

--

--

P7 P6 P5 P4 P3 P2 P1

P0

Summary of Contents for MIC-3758DIO

Page 1: ...MIC 3758DIO 128 channel Isolated Digital I O CompactPCI Card User Manual...

Page 2: ...by any means without the prior written permission of Advantech Co Ltd Information provided in this manual is intended to be accurate and reli able However Advantech Co Ltd assumes no responsibility fo...

Page 3: ...lacement materials service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem enc...

Page 4: ...attachments Description of your software operating system version appli cation software etc A complete description of the problem The exact wording of any error messages Packing List Before setting up...

Page 5: ...1 Chapter 3 Pin Assignments Jumper Settings 14 3 1 Pin Assignments 14 Figure 3 1 Connector for MIC 3758DIO 14 Figure 3 2 I O Connector Pin Assignments 15 Table 3 1 I O connector Signal Description 16...

Page 6: ...puts 28 A 1 2 Isolated Digital Output 28 A 1 3 General 28 Appendix B Function Block Diagram 30 B 1 MIC 3758DIO Block Diagram 30 Appendix C Register Structure Format 32 C 1 Register Structure 32 C 2 Di...

Page 7: ...chapter gives background infor mation on MIC 3758DIO It then shows how to configure the card to match your application and prepare it for installation on your system Sections include Introduction Fea...

Page 8: ...ments The following sections of this chapter will provide further information about features of the DAS cards 1 2 Features The Advantech MIC 3758DIO DAS card provides users with the most requested mea...

Page 9: ...input channels 1 2 1 Wide Input Output Range MIC 3758DIO has a wide range of input voltage from 5 to 25 VDC and it is suitable for most industrial applications with 12 VDC and 24 VDC input voltage MIC...

Page 10: ...a user defined safe state and remain in that state until the watchdog timer is disabled and new values are written by the software After the watchdog timer expires MIC 3758DIO ignores any writes unti...

Page 11: ...e companion CD ROM Wiring cable 100 pin MINI SCSI HDRA E100 cable Wiring board ADAM 39100 Computer CompactPCI computer system running Windows 98 NT 2000 XP After you get the necessary components and m...

Page 12: ...PCL 101100S 1 1 5m 3m 5m shielded cable is specially designed for MIC 3758DIO cards to provide high resistance to noise 1 4 2 Wiring Terminal Boards ADAM 39100 The ADAM 39100 is a 100 pin SCSI wiring...

Page 13: ...dware Configuration This chapter provides a package item checklist proper instructions about unpacking and step by step procedures for card installation Sections include Unpacking Hardware Installatio...

Page 14: ...to dis charge static electricity accumulated on your body Or one can also use a grounding strap Touch the antistatic bag to a metal part of your computer chassis before opening the bag Take hold of t...

Page 15: ...le of the card should be pointing to the lower edge of the backplane Step 3 Hold the lower handle and pull the handle down to unlock it Step 4 Insert the MIC 3758DIO card into the CompactPCI chassis c...

Page 16: ...e card and the CompactPCI system will automatically uninstall the card configuration Step 2 Once the system completes the configuration the Blue LED will be lit Now you can slide the card out Note If...

Page 17: ...1 MIC 3758DIO Board Layout 2 3 1 Connector MIC 3758DIO has one HDRA E100W1LFDT1EC SL Equivalent female connector For more details about jumper switch and connector please see Chapter 3 Pin Assignment...

Page 18: ...MIC 3758DIO User Manual 12...

Page 19: ...od signal connection can avoid unnecessary and costly damage to your system and other hardware devices This chapter provides useful informa tion about how to connect input and output signals to the MI...

Page 20: ...n of the connector while Figure 3 2 shows the pin assignments for the MINI SCSI HDRA E100 female connector on MIC 3758DIO and Table 3 1 describes the func tionality of each pin on the connector Figure...

Page 21: ...15 Chapter3 Figure 3 2 I O Connector Pin Assignments for MIC 3758DIO...

Page 22: ...ommon port of Digital Input port 0 and port 1 P67_COM Common port of Digital Input port 0 and port 1 P0_IDO00 07 P01_COMM Output Isolated Digital Output of port 0 P1_IDO00 07 P01_COMM Output Isolated...

Page 23: ...tion of Jumper and DIP switch Figure 3 3 show the names and locations of the jumper and DIP switch on MIC 3758DIO There is one DIP switch SW2 and one jumper JP1 Figure 3 3 Location of Jumper and DIP S...

Page 24: ...he configuration of interrupts by programming the interrupt control register For more detailed information please refer to Section 5 1 Interrupt Function 3 3 2 Isolated Inputs Each isolated digital in...

Page 25: ...JP1 Table 3 2 shows the configuration of jumper JP1 3 4 2 Isolated Outputs Each of the isolated output channels is equipped with a Darlington tran sistor Every 16 output channel shares common collect...

Page 26: ...inter ference Keep the analog signal cables away from any video monitor since it can significantly affect a data acquisition system If the cable travels through an area with significant electromagnet...

Page 27: ...o all of the card s functions without register level programming For those who prefer to implement their own bit level program ming please refer to the following information in this chapter Sections i...

Page 28: ...bility and flex ibility 4 1 1 IRQ Level The IRQ level is set automatically by the CompactPCI Plug Play BIOS and is saved in the CompactPCI controller There is no need to set the IRQ level Only one IRQ...

Page 29: ...ge from 200 ns to 400 sec There are two clocks the sample clock and the filter clock in the filter The sample clock has a period of 100 ns The filter clock is generated by a counter and has a period e...

Page 30: ...ion because the external signal remains steadily high Depending on when the transition occurs the filter may require up to two filter clocks one full filter interval to pass a transition The figure sh...

Page 31: ...munication between the application and MIC 3758DIO and the outputs go to a user defined safe state and remain in that state until the watchdog timer is disabled and new values are written by software...

Page 32: ...58DIO Base Addr 3Eh 3 2 1 0 Abbreviation ID3 ID2 ID1 ID0 Table 4 3 BoardID Setting SW2 BoardID DEC Switch Position ID3 ID2 ID1 ID0 0 ON ON ON ON 1 ON ON ON OFF 2 ON ON OFF ON 3 ON ON OFF OFF 4 ON OFF...

Page 33: ...2 APPENDIX A Specifications...

Page 34: ...ut Current 5 V 1 30 mA typical 10 V 2 90 mA typical 12 V 3 60 mA typical 24 V 7 90 mA typical Number of Input Channels 64 Optical Isolation 2500 VDC Opto isolator response time 20 s Supply Voltage 5 4...

Page 35: ...2 APPENDIX B Function Block Diagram...

Page 36: ...MIC 3758DIO User Manual 30 Appendix B Function Block Diagram B 1 MIC 3758DIO Block Diagram...

Page 37: ...2 APPENDIX C Register Structure Format...

Page 38: ...register The most important consideration in programming the MIC 3758DIO at the register level is to understand the function of the card s registers The information in the following sections is provid...

Page 39: ...Port6 and Port7 Falling Edge Inter rupt Register DI Port6 and Port7 Falling Edge Interrupt Register 20H DI Port 0 and Port 1 Interrupt State Register DI Port 0 and Port 1 Interrupt State Register 22H...

Page 40: ...no voltage is present or a voltage below 3 V 1 The Pn IDIm input a voltage over 5 V is present n 0 to 7 is for Port 0 to Port 7 m 0 to 7 is for IDI0 to IDI7 Base 0x00 for Port 1 and Port 0 Base 0x02 f...

Page 41: ...Output Register Bit 15 Bit 0 Write 0 The Pn IDOm output Darlington switch OFF 1 The Pn IDOm output Darlington switch ON Bit 15 Bit 0 Read back 0 The Pn IDOm output Darlington state is OFF 1 The Pn ID...

Page 42: ...ising Edge interrupt function n 0 to 7 is for Port 0 to Port 7 m 0 to 7 is for IDI0 to IDI7 Bit 15 Bit 0 Read Read back the setting value Base 0x10 for Digital Input Port 1 and Digital Input Port 0 Ba...

Page 43: ...DIm Falling Edge interrupt function 1 Enable the Pn IDIm Falling Edge interrupt function n 0 to 7 for Port 0 to Port 7 m 0 to 7 for IDI0 to IDI7 Bit 15 Bit 0 Read Read back the setting value Base 0x12...

Page 44: ...ag Status 1 means an interrupt flag occurs in Pn IDIm 0 means no interrupt flag occurs in Pn IDIm n 0 to 7 for Port 0 to Port 7 m 0 to 7 for IDI0 to IDI7 To identify in which port an interrupt occurs...

Page 45: ...port 7 1 means an interrupt occurs in this port 0 means no interrupt occurs in this port There are two registers which control the digital filter function and status of each channel Digital Filter En...

Page 46: ...lter function 1 Enable the Pn IDIm digital filter function n 0 to 7 for Port 0 to Port 7 m 0 to 7 for IDI0 to IDI7 Base 0x28 for Port 1 and Port 0 Base 0x2A for Port 3 and Port 2 Base 0x2C for Port 5...

Page 47: ...the following formula T interval Value x 200 ns For example Filter Interval Time Preset register high 16 bits 0x0001 Filter Interval Time Preset register low 16 bits 0x0000 Value 0x00010000 T interva...

Page 48: ...imer values low 16 bits Register 0x0000 WDT 0x00010000 Watchdog timer Interval WDT x 100ns 6553600ns Base 0x34 Read Write Bit1 5 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4...

Page 49: ...enable control bit 0 Disable WDT interrupt 1 Enable WDT interrupt When the WDT interrupt is enabled a interrupt will generate while the WDT counting down to 0 otherwise it won t generate a interrupt...

Page 50: ...Register Bit 0 Watchdog timer reset bit 0 Reset the Watchdog Timer to pre set value 1 Keep the Watchdog Timer current state Writing a 0 to this bit will reload the preset value to the watchdog timer...

Page 51: ...Bit 15 Bit 1 Bit0 N A DO Base 0x3C Write Bit 15 Bit 4 Bit3 Bit2 Bit1 Bit0 CS CLK DI DO Address Stored data description Stored data class 0x00 P1_IDO P0_IDO Digital output power up values 0x01 P3_IDO P...

Page 52: ...mber set SW2 by referring to the table ID0 the least significant bit LSB of BoardID ID3 the most significant bit MSB of BoardID BoardID register of MIC 3758DIO Base Add 3Eh Bit3 Bit2 Bit1 Bit0 Abbrevi...

Reviews: