Advantech PCI-1784 Counters, Digital Input and Interrupts, Flexible Digital Output function

Page 6

Counters

The PCI-1784 has four independent 32-bit counters. The maximum quadrature input rate is 2 MHz, and the maximum input rate in counter mode is 8 MHz. You can individually configure each counter for quadrature decoding, pulse/direction counting or up/down counting.

Digital Input and Interrupts

The PCI-1784 provides four digital input channels. Each channel accepts digital input as an index input for a rotary encoder or as a home sensor input for a linear encoder. The card can generate an interrupt to the system based on a signal from its digital inputs, overflow/underflow and over-compare/under-compare of its counters, or on a programmed time interval. It can repeatedly generate interrupts at any time interval you specify, from 20 micro second to 51 second. These interrupts let you precisely monitor the speed of a control system.

Flexible Digital Output function

The PCI-1784 provides four digital output channels. Each channel accepts digital output as a normal TTL output for a rotary encoder, or as an indicated output with pulse/level mode for a linear encoder. The PCI- 1784 can generate an indicated output based on a signal from over- compare/under-compare of its counters. The pulse width of an indicated output is depends on the counter clock or clear interrupt.

Special Shielded Cable for Noise Reduction

The PCL-10137H shielded cable is specially designed for the PCI-1784 for reducing noise. Its wires are all twisted pairs, and the input signals and output signals are separately shielded, providing minimal cross talk between signals and the best protection against EMI/EMC problems.

Keeping the Counter Values and the Output Status after system reset

Users can independently use the four counter channels. When the system is hot reset (power not shut down), the PCI-1784 can either retain the last counter values and the output status, or return to its

2

Image 6
Contents Page Page Contents Appendix D. Operation Features IntroductionEncoder Interface Flexible Digital Output function CountersDigital Input and Interrupts Special Shielded Cable for Noise ReductionBoard ID Installation Guide ApplicationsInstallation Flow Chart Software Overview Device DriversRegister-level Programming Device Drivers Programming Roadmap Programming ToolsTroubleshooting Device Drivers Error Programming with Device Drivers Function LibraryAccessories Wiring CableWiring Boards 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 Overview Signal ConnectionsSwitch and Jumper Settings Names of Jumpers Function descriptionBoard ID setting SW1 Signal Connections Connector Signal DescriptionPin Assignment Quadrature encoder input Single ended Outputs EncoderQuadrature encoder up/down counter input connections Isolated digital input Isolated digital outputAppendix A. Specifications TimerEncoder Output Interrupt Counter LatchGeneral 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 introductionCounter modes Mode Maximum input rate 8MHz 4MHz 2MHz 1MHzQuadrature input counter mode Single-ended vs. differential inputDisabled mode Pulse modePulse/direction mode Digital noise filterLatch Latch modeClock frequency Maximum width Index latchCounter reset value Timer functionInterrupt function