Advantech PCI-1784 Digital noise filter, Pulse mode, Pulse/direction mode, Disabled mode

Page 53

2-pulse mode

In 2-pulse mode the PCI-1784 uses two input pulses as counting sources: one for clockwise (CW) and one for counterclockwise (CCW) counting. The counter will increment whenever a rising edge occurs on channel A. It will decrement whenever a rising edge occurs on channel B.

pulse/direction mode

In pulse/direction mode the PCI-1784 uses one input line (A) for pulse input and one line (B) for direction. If channel B is high (1), the counter will decrement whenever a rising edge occurs in channel A. If channel B is low (0), the counter will increment whenever a rising edge occurs on channel A.

Disabled mode

PCI-1784 will not accept input, but you can access all its registers.

You select the mode by programming the card's registers: BASE+00H for CH0, BASE+04H for CH1, BASE+08H for CH2 and BASE+0CH for CH3. See Appendix C for more information.

D.3 Digital noise filter

Noise immunity is the most important requirement for reliable encoder interface operation. The PCI-1784 conditions the input signal with a four stage digital filter. This filter reduces glitches (digital noise) or spikes by sampling by sampling the input at 1, 2, 4 or 8MHz. The filter output waveforms change only when an input has the same value for four consecutive sampling edges. The filter thus rejects noise or pulses shorter than four sampling clock periods. You can optimize noise immunity by selecting the lowest sampling frequency that compatible with the highest input rate you expect.

The PCI-1784 accepts up to 2 MHz quadrature frequency at 8 MHz filter sampling speed. At 2 MHz sampling speed it can still accept up

49

Image 53
Contents Page Page Contents Appendix D. Operation Encoder Interface FeaturesIntroduction Digital Input and Interrupts CountersFlexible Digital Output function Special Shielded Cable for Noise ReductionBoard ID Applications Installation GuideInstallation Flow Chart Register-level Programming Software OverviewDevice Drivers Programming Tools Device Drivers Programming RoadmapProgramming with Device Drivers Function Library Troubleshooting Device Drivers ErrorWiring Boards AccessoriesWiring Cable Unpacking InstallationPage Setup Screen of Advantech Automation Software Driver InstallationSelect the Individual Drivers option Hardware InstallationPage Device name listed on the Device Manager Board selection Device Setup & Configuration‘Setup’ dialog box Setting Up and configure the deviceOperation dialog box Switch and Jumper Settings Signal ConnectionsOverview Names of Jumpers Function descriptionBoard ID setting SW1 Pin Assignment Signal ConnectionsConnector Signal Description Single ended Outputs Encoder Quadrature encoder inputQuadrature encoder up/down counter input connections Isolated digital output Isolated digital inputEncoder Output Appendix A. SpecificationsTimer General InterruptCounter Latch ADDRESS, Control and Data BUS Appendix B. Block DiagramPage I/O Port Address Map Appendix C. Register Structure and Format+ HEX Table C-1 PCI-1784 register format Part1CH Clock Control Table C-2 PCI-1784 Register for counter 0/1/2/3 mode Counter 0/1/2/3 mode BASE+00/04/08/0CHDI0 Table C-3 PCI-1784 Register for counter 0/1/2/3 latch data Counter 0/1/2/3 latch data BASE+00/04/08/0CHTable C-4 PCI-1784 Register for counter 0/1/2/3 compare data Counter 0/1/2/3 compare data BASE+10/14/18/1CHTable C-5 PCI-1784 Register for interrupt control Interrupt control register BASE+20HTable C-6 PCI-1784 Register for interrupt status Interrupt status register BASE+20HTable C-7 PCI-1784 Register for clock control Clear Interrupt BASE+24HTable C-8 PCI-1784 Register for clear interrupt Table C-9 PCI-1784 Register for software latch Software latch BASE+28HTable C-10 PCI-1784 Board ID data Board ID BASE+28HTable C-11 PCI-1784 Register for reset counter Reset counter BASE+2CHTable C-12 PCI-1784 Register for digital output Digital output BASE+30HTable C-13 PCI-1784 Register for digital input/output Digital input/output BASE+30HPage Quadrature encoder introduction Appendix D. OperationQuadrature input counter mode Mode Maximum input rate 8MHz 4MHz 2MHz 1MHzCounter modes Single-ended vs. differential inputPulse/direction mode Pulse modeDisabled mode Digital noise filterClock frequency Maximum width Latch modeLatch Index latchTimer function Counter reset valueInterrupt function