Advantech PCI-1784 specifications Interrupt function

Page 56

D.7 Interrupt function

The PCI-1784 can generate an interrupt to the PC for any of the following conditions:

1.Counter 0 overflow

2.Counter 1 overflow

3.Counter 2 overflow

4.Counter 3 overflow

5.Counter 0 underflow

6.Counter 1 underflow

7.Counter 2 underflow

8.Counter 3 underflow

9.Counter 0 index in

10.Counter 1 index in

11.Counter 2 index in

12.Counter 3 index in

13.DI0 input

14.DI1 input

15.DI2 input

16.DI3 input

17.Counter 0 over-compare

18.Counter 1 over-compare

19.Counter 2 over-compare

20.Counter 3 over-compare

21.Counter 0 under-compare

22.Counter 1 under-compare

23.Counter 2 under-compare

24.Counter 3 under-compare

25.Timer pulse

Note that you can use only one of the card's interrupt sources at a given time, unless you specially program your interrupt service routine to handle multiple interrupt sources.

You enable the PCI-1784 interrupt functions by accessed through the

52

Image 56
Contents Page Page Contents Appendix D. Operation Encoder Interface FeaturesIntroduction Counters Digital Input and InterruptsFlexible Digital Output function Special Shielded Cable for Noise ReductionBoard ID Installation Guide ApplicationsInstallation Flow Chart Register-level Programming Software OverviewDevice Drivers Device Drivers Programming Roadmap Programming ToolsTroubleshooting Device Drivers Error Programming with Device Drivers Function LibraryWiring Boards AccessoriesWiring Cable Installation UnpackingPage Driver Installation Setup Screen of Advantech Automation SoftwareHardware Installation Select the Individual Drivers optionPage Device name listed on the Device Manager Device Setup & Configuration Board selectionSetting Up and configure the device ‘Setup’ dialog boxOperation dialog box Signal Connections Switch and Jumper SettingsOverview Names of Jumpers Function descriptionBoard ID setting SW1 Pin Assignment Signal ConnectionsConnector Signal Description Quadrature encoder input Single ended Outputs EncoderQuadrature encoder up/down counter input connections Isolated digital input Isolated digital outputEncoder Output Appendix A. SpecificationsTimer General InterruptCounter Latch Appendix B. Block Diagram ADDRESS, Control and Data BUSPage Appendix C. Register Structure and Format I/O Port Address MapTable C-1 PCI-1784 register format Part + HEX1CH Clock Control Counter 0/1/2/3 mode BASE+00/04/08/0CH Table C-2 PCI-1784 Register for counter 0/1/2/3 modeDI0 Counter 0/1/2/3 latch data BASE+00/04/08/0CH Table C-3 PCI-1784 Register for counter 0/1/2/3 latch dataCounter 0/1/2/3 compare data BASE+10/14/18/1CH Table C-4 PCI-1784 Register for counter 0/1/2/3 compare dataInterrupt control register BASE+20H Table C-5 PCI-1784 Register for interrupt controlInterrupt status register BASE+20H Table C-6 PCI-1784 Register for interrupt statusClear Interrupt BASE+24H Table C-7 PCI-1784 Register for clock controlTable C-8 PCI-1784 Register for clear interrupt Software latch BASE+28H Table C-9 PCI-1784 Register for software latchBoard ID BASE+28H Table C-10 PCI-1784 Board ID dataReset counter BASE+2CH Table C-11 PCI-1784 Register for reset counterDigital output BASE+30H Table C-12 PCI-1784 Register for digital outputDigital input/output BASE+30H Table C-13 PCI-1784 Register for digital input/outputPage Appendix D. Operation Quadrature encoder introductionMode Maximum input rate 8MHz 4MHz 2MHz 1MHz Quadrature input counter modeCounter modes Single-ended vs. differential inputPulse mode Pulse/direction modeDisabled mode Digital noise filterLatch mode Clock frequency Maximum widthLatch Index latchCounter reset value Timer functionInterrupt function